Skip to content

Commit 2af8f9d

Browse files
committed
Default arrow to release if no build-type is otherwise specified
1 parent 4166ef9 commit 2af8f9d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rerun_cpp/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ if(RERUN_DOWNLOAD_AND_BUILD_ARROW)
159159
set(DARROW_CXXFLAGS "")
160160
endif()
161161

162+
if(NOT CMAKE_BUILD_TYPE)
163+
set(ARROW_CMAKE_BUILD_TYPE Release)
164+
else()
165+
set(ARROW_CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE})
166+
endif()
167+
162168
ExternalProject_Add(
163169
arrow_cpp
164170
PREFIX ${ARROW_DOWNLOAD_PATH}
@@ -179,7 +185,7 @@ if(RERUN_DOWNLOAD_AND_BUILD_ARROW)
179185
-DARROW_USE_TSAN=OFF
180186
-DARROW_USE_UBSAN=OFF
181187
-DBOOST_SOURCE=BUNDLED
182-
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
188+
-DCMAKE_BUILD_TYPE=${ARROW_CMAKE_BUILD_TYPE}
183189
-DCMAKE_INSTALL_PREFIX=${ARROW_DOWNLOAD_PATH}
184190
-Dxsimd_SOURCE=BUNDLED
185191
SOURCE_SUBDIR cpp

0 commit comments

Comments
 (0)