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 authored and cz4rs committed Jan 5, 2021
1 parent fc0e51b commit a363a7d
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 @@ -192,8 +192,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 a363a7d

Please sign in to comment.