diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-02-05 18:32:04 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-02-06 16:07:38 (GMT) |
commit | 9e219de4fb50096a9386dbe6de9f98cf8a7ec199 (patch) | |
tree | 0ea9983da347a69958da346acb242b888bc36acd /Tests/CMakeOnly/Test.cmake.in | |
parent | 13ef3285df97fa97a4cc1b7fe81741aeb8adcf7a (diff) | |
download | CMake-9e219de4fb50096a9386dbe6de9f98cf8a7ec199.zip CMake-9e219de4fb50096a9386dbe6de9f98cf8a7ec199.tar.gz CMake-9e219de4fb50096a9386dbe6de9f98cf8a7ec199.tar.bz2 |
Ninja Multi-Config: Don't include MinSizeRel by default
Diffstat (limited to 'Tests/CMakeOnly/Test.cmake.in')
-rw-r--r-- | Tests/CMakeOnly/Test.cmake.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CMakeOnly/Test.cmake.in b/Tests/CMakeOnly/Test.cmake.in index 0ae8af1..c531e8b 100644 --- a/Tests/CMakeOnly/Test.cmake.in +++ b/Tests/CMakeOnly/Test.cmake.in @@ -7,6 +7,13 @@ if(make_program) set(maybe_make_program "-DCMAKE_MAKE_PROGRAM=${make_program}") endif() +set(_isMultiConfig "@_isMultiConfig@") +if(_isMultiConfig) + set(cfg_opts "-DCMAKE_CONFIGURATION_TYPES=Debug\\;Release\\;RelWithDebInfo") +else() + set(cfg_opts) +endif() + set(source_dir "@CMAKE_CURRENT_SOURCE_DIR@/${TEST_SOURCE}") set(binary_dir "@CMAKE_CURRENT_BINARY_DIR@/${TEST}-build") file(REMOVE_RECURSE "${binary_dir}") @@ -16,6 +23,7 @@ execute_process( "${source_dir}" -G "@CMAKE_GENERATOR@" -A "@CMAKE_GENERATOR_PLATFORM@" -T "@CMAKE_GENERATOR_TOOLSET@" + ${cfg_opts} ${maybe_make_program} WORKING_DIRECTORY "${binary_dir}" RESULT_VARIABLE result |