You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
433 B
15 lines
433 B
2 years ago
|
include(RunCMake)
|
||
|
|
||
|
unset(ENV{CMAKE_COLOR_DIAGNOSTICS})
|
||
|
|
||
|
function(run_Diag case)
|
||
|
set(RunCMake_TEST_BINARY_DIR "${RunCMake_BINARY_DIR}/Diag${case}-build")
|
||
|
run_cmake_with_options(Diag${case} ${ARGN})
|
||
|
set(RunCMake_TEST_NO_CLEAN 1)
|
||
|
run_cmake_command(Diag${case}-build ${CMAKE_COMMAND} --build . --config Debug)
|
||
|
endfunction()
|
||
|
|
||
|
run_Diag(On -DCMAKE_COLOR_DIAGNOSTICS=ON)
|
||
|
run_Diag(Off -DCMAKE_COLOR_DIAGNOSTICS=OFF)
|
||
|
run_Diag(Default)
|