Skip to content

Commit

Permalink
#1098: Add new CMake flag to detect CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Oct 12, 2020
1 parent e6df66e commit 3582cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/define_build_types.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ foreach(loop_build_type ${VT_CONFIG_TYPES})
${cmake_vt_debug_modes_${loop_build_type}}
)

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

0 comments on commit 3582cba

Please sign in to comment.