From 5c9ae1b0e6c72705a7e1b8f69342f39f24cb0321 Mon Sep 17 00:00:00 2001 From: Jakub Domagala Date: Mon, 12 Oct 2020 21:29:55 +0200 Subject: [PATCH] #1098: Add option to use ci_build flag in code --- cmake/define_build_types.cmake | 3 +++ cmake_config.h.in | 1 + src/vt/configs/features/features_defines.h | 1 + 3 files changed, 5 insertions(+) diff --git a/cmake/define_build_types.cmake b/cmake/define_build_types.cmake index 5c60b4af2b..21ba16c46b 100644 --- a/cmake/define_build_types.cmake +++ b/cmake/define_build_types.cmake @@ -164,6 +164,9 @@ else() set(vt_feature_cmake_zoltan "0") endif() +message(STATUS "CI_BUILD = ${vt_ci_build}") +set(vt_feature_cmake_ci_build ${vt_ci_build}) + set(vt_feature_cmake_no_feature "0") set(vt_feature_cmake_production "0") diff --git a/cmake_config.h.in b/cmake_config.h.in index 7e38360a47..610bd19db3 100644 --- a/cmake_config.h.in +++ b/cmake_config.h.in @@ -67,6 +67,7 @@ #define vt_feature_cmake_mimalloc @vt_feature_cmake_mimalloc@ #define vt_feature_cmake_mpi_access_guards @vt_feature_cmake_mpi_access_guards@ #define vt_feature_cmake_zoltan @vt_feature_cmake_zoltan@ +#define vt_feature_cmake_ci_build @vt_feature_cmake_ci_build@ #cmakedefine vt_quirked_trivially_copyable_on_msg #cmakedefine vt_quirked_serialize_method_detection diff --git a/src/vt/configs/features/features_defines.h b/src/vt/configs/features/features_defines.h index 2c6c4ed6a4..b47798f8b7 100644 --- a/src/vt/configs/features/features_defines.h +++ b/src/vt/configs/features/features_defines.h @@ -69,5 +69,6 @@ #define vt_feature_mimalloc 0 || vt_feature_cmake_mimalloc #define vt_feature_mpi_access_guards 0 || vt_feature_cmake_mpi_access_guards #define vt_feature_zoltan 0 || vt_feature_cmake_zoltan +#define vt_feature_ci_build 0 || vt_feature_cmake_ci_build #endif /*INCLUDED_VT_CONFIGS_FEATURES_FEATURES_DEFINES_H*/