Skip to content

Commit

Permalink
#1098: Set default value of vt_ci_build to '0' inside CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala authored and Braden Mailloux committed Oct 15, 2020
1 parent 6bdca1b commit bbb8f78
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cmake/define_build_types.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,13 @@ else()
set(vt_feature_cmake_zoltan "0")
endif()

message(STATUS "CI_BUILD = ${vt_ci_build}")
set(vt_feature_cmake_ci_build ${vt_ci_build})
if(${vt_ci_build})
set(vt_feature_cmake_ci_build "1")
else()
set(vt_feature_cmake_ci_build "0")
endif()

message(STATUS "CI_BUILD = ${vt_feature_cmake_ci_build}")

set(vt_feature_cmake_no_feature "0")
set(vt_feature_cmake_production "0")
Expand Down Expand Up @@ -216,7 +221,7 @@ foreach(loop_build_type ${VT_CONFIG_TYPES})
)

# assume production mode for everything except debug or CI build
if (loop_build_type STREQUAL "debug" OR ${vt_ci_build})
if (loop_build_type STREQUAL "debug" OR ${vt_feature_cmake_ci_build})
set(vt_feature_cmake_production "0")
else()
set(vt_feature_cmake_production "1")
Expand Down

0 comments on commit bbb8f78

Please sign in to comment.