We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba17139 commit 795fc88Copy full SHA for 795fc88
1 file changed
CMakeLists.txt
@@ -27,9 +27,16 @@ if (CMAKE_CUDA_ARCHITECTURES MATCHES OFF)
27
endif()
28
29
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
30
- message(NOTICE "Suggesting setting build type expicitly (eg. "
+ set(MSG
31
+ "setting build type expicitly (eg. "
32
"\"-DCMAKE_BUILD_TYPE=Release\" or \"Debug\") for single-config "
33
"generators.")
34
+ if("$ENV{CI}" STREQUAL "true")
35
+ message(FATAL_ERROR "In CI, compulsory ${MSG} You can use \"\" for "
36
+ "the default.")
37
+ else()
38
+ message(NOTICE "Suggesting ${MSG}")
39
+ endif()
40
41
42
cmake_policy(SET CMP0010 NEW) # error on undefined variable
0 commit comments