From 2ba09dfb07a0def41e5fa629e1a798891f79baab Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Tue, 26 Sep 2023 05:57:30 +0900 Subject: [PATCH] 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 Signed-off-by: Sutou Kouhei --- 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 8c9173c1710cb..c18c9eff37279 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 18c93a5b8b71b..3efe5994055db 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',