Skip to content

Commit

Permalink
Fix cmake configuration (#2022)
Browse files Browse the repository at this point in the history
* Fix cmake configuration

* Delete the CMAKE_EXPORT_COMPILE_COMMANDS option
  • Loading branch information
yixinglu committed Sep 13, 2023
1 parent 32f38fb commit bd69420
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
bazel-*
.clwb
.cache
.ccls-cache
.bazelrc
test/test_files/test_list

test_temp/
build/

compile_commands.json

### Python
# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,15 @@ else()
-DENABLE_UBSAN=${ENABLE_UBSAN}
-DFORCE_COLORED_OUTPUT=${FORCE_COLORED_OUTPUT}
WORKING_DIRECTORY ${ARROW_BUILD_DIR}
COMMAND_ERROR_IS_FATAL ANY)
RESULT_VARIABLE ARROW_CONFIGURE_RESULT)
if (ARROW_CONFIGURE_RESULT)
message(FATAL_ERROR "Failed to configure arrow")
endif()
execute_process(COMMAND ${CMAKE_COMMAND} --build ${ARROW_BUILD_DIR} --config ${CMAKE_BUILD_TYPE}
COMMAND_ERROR_IS_FATAL ANY)
RESULT_VARIABLE ARROW_BUILD_RESULT)
if (ARROW_BUILD_RESULT)
message(FATAL_ERROR "Failed to build arrow")
endif()
else()
message(STATUS "Using arrow at path ${ARROW_INSTALL}")
endif()
Expand Down

0 comments on commit bd69420

Please sign in to comment.