From cb5bdab4b78bdd303eee692fe1b690700fbdfabc Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Mon, 25 Sep 2023 11:15:03 +0900 Subject: [PATCH] GH-37849: [C++] Add cpp/src/**/*.cmake to cmake-format targets --- 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',