@@ -53,7 +53,9 @@ string(REGEX MATCH "^[0-9]+\\.[0-9]+\\.[0-9]+" ARROW_BASE_VERSION "${ARROW_VERSI
53
53
54
54
# if no build build type is specified, default to release builds
55
55
if (NOT DEFINED CMAKE_BUILD_TYPE )
56
- set (CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." )
56
+ set (CMAKE_BUILD_TYPE
57
+ Release
58
+ CACHE STRING "Choose the type of build." )
57
59
endif ()
58
60
string (TOLOWER ${CMAKE_BUILD_TYPE} LOWERCASE_BUILD_TYPE )
59
61
string (TOUPPER ${CMAKE_BUILD_TYPE} UPPERCASE_BUILD_TYPE )
@@ -117,18 +119,15 @@ set(ARROW_LLVM_VERSIONS
117
119
"8"
118
120
"7" )
119
121
list (GET ARROW_LLVM_VERSIONS 0 ARROW_LLVM_VERSION_PRIMARY )
120
- string (REGEX
121
- REPLACE "^([0-9]+)(\\ ..+)?" "\\ 1" ARROW_LLVM_VERSION_PRIMARY_MAJOR
122
- "${ARROW_LLVM_VERSION_PRIMARY} " )
122
+ string (REGEX REPLACE "^([0-9]+)(\\ ..+)?" "\\ 1" ARROW_LLVM_VERSION_PRIMARY_MAJOR
123
+ "${ARROW_LLVM_VERSION_PRIMARY} " )
123
124
124
125
file (READ ${CMAKE_CURRENT_SOURCE_DIR} /../.env ARROW_ENV )
125
126
string (REGEX MATCH "CLANG_TOOLS=[^\n ]+" ARROW_ENV_CLANG_TOOLS_VERSION "${ARROW_ENV} " )
126
- string (REGEX
127
- REPLACE "^CLANG_TOOLS=" "" ARROW_CLANG_TOOLS_VERSION
128
- "${ARROW_ENV_CLANG_TOOLS_VERSION} " )
129
- string (REGEX
130
- REPLACE "^([0-9]+)(\\ ..+)?" "\\ 1" ARROW_CLANG_TOOLS_VERSION_MAJOR
131
- "${ARROW_CLANG_TOOLS_VERSION} " )
127
+ string (REGEX REPLACE "^CLANG_TOOLS=" "" ARROW_CLANG_TOOLS_VERSION
128
+ "${ARROW_ENV_CLANG_TOOLS_VERSION} " )
129
+ string (REGEX REPLACE "^([0-9]+)(\\ ..+)?" "\\ 1" ARROW_CLANG_TOOLS_VERSION_MAJOR
130
+ "${ARROW_CLANG_TOOLS_VERSION} " )
132
131
133
132
if (APPLE )
134
133
find_program (BREW_BIN brew )
@@ -163,7 +162,9 @@ endif()
163
162
164
163
find_package (ClangTools )
165
164
find_package (InferTools )
166
- if ("$ENV{CMAKE_EXPORT_COMPILE_COMMANDS} " STREQUAL "1" OR CLANG_TIDY_FOUND OR INFER_FOUND )
165
+ if ("$ENV{CMAKE_EXPORT_COMPILE_COMMANDS} " STREQUAL "1"
166
+ OR CLANG_TIDY_FOUND
167
+ OR INFER_FOUND )
167
168
# Generate a Clang compile_commands.json "compilation database" file for use
168
169
# with various development tools, such as Vim's YouCompleteMe plugin.
169
170
# See http://clang.llvm.org/docs/JSONCompilationDatabase.html
@@ -226,7 +227,9 @@ if(NOT LINT_EXCLUSIONS_FILE)
226
227
set (LINT_EXCLUSIONS_FILE ${BUILD_SUPPORT_DIR} /lint_exclusions.txt )
227
228
endif ()
228
229
229
- find_program (CPPLINT_BIN NAMES cpplint cpplint.py HINTS ${BUILD_SUPPORT_DIR} )
230
+ find_program (CPPLINT_BIN
231
+ NAMES cpplint cpplint.py
232
+ HINTS ${BUILD_SUPPORT_DIR} )
230
233
message (STATUS "Found cpplint executable at ${CPPLINT_BIN} " )
231
234
232
235
add_custom_target (lint
@@ -271,7 +274,7 @@ if(${CLANG_FORMAT_FOUND})
271
274
endif ()
272
275
273
276
add_custom_target (lint_cpp_cli ${PYTHON_EXECUTABLE} ${BUILD_SUPPORT_DIR} /lint_cpp_cli.py
274
- ${CMAKE_CURRENT_SOURCE_DIR} /src )
277
+ ${CMAKE_CURRENT_SOURCE_DIR} /src )
275
278
276
279
if (ARROW_LINT_ONLY )
277
280
message ("ARROW_LINT_ONLY was specified, this is only a partial build directory" )
@@ -469,10 +472,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
469
472
if (NOT APPLE )
470
473
set (MORE_ARGS "-T" )
471
474
endif ()
472
- execute_process (COMMAND ln
473
- ${MORE_ARGS}
474
- -sf
475
- ${BUILD_OUTPUT_ROOT_DIRECTORY}
475
+ execute_process (COMMAND ln ${MORE_ARGS} -sf ${BUILD_OUTPUT_ROOT_DIRECTORY}
476
476
${CMAKE_CURRENT_BINARY_DIR} /build/latest )
477
477
else ()
478
478
set (BUILD_OUTPUT_ROOT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR} /${BUILD_SUBDIR_NAME} /" )
@@ -550,12 +550,9 @@ include_directories(src/generated)
550
550
#
551
551
if (PARQUET_BUILD_SHARED )
552
552
set_target_properties (arrow_shared
553
- PROPERTIES C_VISIBILITY_PRESET
554
- hidden
555
- CXX_VISIBILITY_PRESET
556
- hidden
557
- VISIBILITY_INLINES_HIDDEN
558
- 1 )
553
+ PROPERTIES C_VISIBILITY_PRESET hidden
554
+ CXX_VISIBILITY_PRESET hidden
555
+ VISIBILITY_INLINES_HIDDEN 1 )
559
556
endif ()
560
557
561
558
#
@@ -599,7 +596,9 @@ endif(UNIX)
599
596
# "make cscope" target
600
597
#
601
598
if (UNIX )
602
- add_custom_target (cscope find ${CMAKE_CURRENT_SOURCE_DIR}
599
+ add_custom_target (cscope
600
+ find
601
+ ${CMAKE_CURRENT_SOURCE_DIR}
603
602
(-name
604
603
\\*.cc
605
604
-or
@@ -636,23 +635,14 @@ endif(UNIX)
636
635
637
636
if(${INFER_FOUND} )
638
637
# runs infer capture
639
- add_custom_target(infer
640
- ${BUILD_SUPPORT_DIR} /run-infer.sh
641
- ${INFER_BIN}
642
- ${CMAKE_BINARY_DIR} /compile_commands.json
643
- 1)
638
+ add_custom_target(infer ${BUILD_SUPPORT_DIR} /run-infer.sh ${INFER_BIN}
639
+ ${CMAKE_BINARY_DIR} /compile_commands.json 1)
644
640
# runs infer analyze
645
- add_custom_target(infer-analyze
646
- ${BUILD_SUPPORT_DIR} /run-infer.sh
647
- ${INFER_BIN}
648
- ${CMAKE_BINARY_DIR} /compile_commands.json
649
- 2)
641
+ add_custom_target(infer-analyze ${BUILD_SUPPORT_DIR} /run-infer.sh ${INFER_BIN}
642
+ ${CMAKE_BINARY_DIR} /compile_commands.json 2)
650
643
# runs infer report
651
- add_custom_target(infer-report
652
- ${BUILD_SUPPORT_DIR} /run-infer.sh
653
- ${INFER_BIN}
654
- ${CMAKE_BINARY_DIR} /compile_commands.json
655
- 3)
644
+ add_custom_target(infer-report ${BUILD_SUPPORT_DIR} /run-infer.sh ${INFER_BIN}
645
+ ${CMAKE_BINARY_DIR} /compile_commands.json 3)
656
646
endif()
657
647
658
648
#
@@ -721,7 +711,7 @@ if(ARROW_ORC)
721
711
list(APPEND ARROW_STATIC_LINK_LIBS orc::liborc ${ARROW_PROTOBUF_LIBPROTOBUF} )
722
712
if(ORC_SOURCE STREQUAL " SYSTEM ")
723
713
list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS orc::liborc
724
- ${ARROW_PROTOBUF_LIBPROTOBUF} )
714
+ ${ARROW_PROTOBUF_LIBPROTOBUF} )
725
715
endif()
726
716
endif()
727
717
@@ -916,8 +906,7 @@ endif()
916
906
917
907
install(FILES ${CMAKE_CURRENT_SOURCE_DIR} /../LICENSE.txt
918
908
${CMAKE_CURRENT_SOURCE_DIR} /../NOTICE.txt
919
- ${CMAKE_CURRENT_SOURCE_DIR} /README.md
920
- DESTINATION " ${ARROW_DOC_DIR} ")
909
+ ${CMAKE_CURRENT_SOURCE_DIR} /README.md DESTINATION " ${ARROW_DOC_DIR} ")
921
910
922
911
#
923
912
# Validate and print out Arrow configuration options
0 commit comments