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 cz4rs committed Jan 5, 2021
1 parent f66c1bd commit e871b61
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cmake/define_build_types.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,14 @@ else()
message(STATUS "Building VT with user MPI prevention guards disabled")
set(vt_feature_cmake_mpi_access_guards "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 @@ -195,7 +201,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 e871b61

Please sign in to comment.