From 3582cbab6cf6452639fcc5fae4bee5a25bda190f Mon Sep 17 00:00:00 2001 From: Jakub Domagala Date: Mon, 12 Oct 2020 17:11:19 +0200 Subject: [PATCH] #1098: Add new CMake flag to detect CI build --- cmake/define_build_types.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/define_build_types.cmake b/cmake/define_build_types.cmake index ef81141482..5c60b4af2b 100644 --- a/cmake/define_build_types.cmake +++ b/cmake/define_build_types.cmake @@ -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")