This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new ebc23687cb GH-37849: [C++] Add cpp/src/**/*.cmake to cmake-format 
targets (#37850)
ebc23687cb is described below

commit ebc23687cb0376e24a0f002fe710db5ad891c674
Author: Sutou Kouhei <[email protected]>
AuthorDate: Tue Sep 26 05:57:30 2023 +0900

    GH-37849: [C++] Add cpp/src/**/*.cmake to cmake-format targets (#37850)
    
    ### Rationale for this change
    
    In general, all our `.cmake` files should be `cmake-format` targets.
    
    ### What changes are included in this PR?
    
    Add missing patterns for `cpp/src/**/*.cmake`.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * Closes: #37849
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 cpp/src/arrow/arrow-config.cmake  | 9 ++++-----
 dev/archery/archery/utils/lint.py | 1 +
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpp/src/arrow/arrow-config.cmake b/cpp/src/arrow/arrow-config.cmake
index 8c9173c171..c18c9eff37 100644
--- a/cpp/src/arrow/arrow-config.cmake
+++ b/cpp/src/arrow/arrow-config.cmake
@@ -19,8 +19,7 @@ message(WARNING "find_package(arrow) is deprecated. Use 
find_package(Arrow) inst
 find_package(Arrow CONFIG)
 
 include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(arrow
-                                  REQUIRED_VARS
-                                  ARROW_INCLUDE_DIR
-                                  VERSION_VAR
-                                  ARROW_VERSION)
+find_package_handle_standard_args(
+  arrow
+  REQUIRED_VARS ARROW_INCLUDE_DIR
+  VERSION_VAR ARROW_VERSION)
diff --git a/dev/archery/archery/utils/lint.py 
b/dev/archery/archery/utils/lint.py
index 18c93a5b8b..3efe599405 100644
--- a/dev/archery/archery/utils/lint.py
+++ b/dev/archery/archery/utils/lint.py
@@ -149,6 +149,7 @@ def cmake_linter(src, fix=False):
         include_patterns=[
             'ci/**/*.cmake',
             'cpp/CMakeLists.txt',
+            'cpp/src/**/*.cmake',
             'cpp/src/**/*.cmake.in',
             'cpp/src/**/CMakeLists.txt',
             'cpp/examples/**/CMakeLists.txt',

Reply via email to