diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:19:58 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:19:58 +0900 |
commit | 484e650e5f7846961a1597af681a9186b2a03729 (patch) | |
tree | 83cbc84f064eb6ac9691cbfa3ac4d8c6f311fb0b /Tests/CTestConfig | |
parent | cd3301b98f04fe073d08531f49b84be0aa2897ef (diff) | |
download | cmake-484e650e5f7846961a1597af681a9186b2a03729.tar.gz cmake-484e650e5f7846961a1597af681a9186b2a03729.tar.bz2 cmake-484e650e5f7846961a1597af681a9186b2a03729.zip |
Imported Upstream version 3.17.0upstream/3.17.0
Diffstat (limited to 'Tests/CTestConfig')
-rw-r--r-- | Tests/CTestConfig/dashboard.cmake.in | 2 | ||||
-rw-r--r-- | Tests/CTestConfig/script.cmake.in | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Tests/CTestConfig/dashboard.cmake.in b/Tests/CTestConfig/dashboard.cmake.in index 4bb1262c0..34824e3be 100644 --- a/Tests/CTestConfig/dashboard.cmake.in +++ b/Tests/CTestConfig/dashboard.cmake.in @@ -13,6 +13,8 @@ message("CMAKE_CTEST_COMMAND='${CMAKE_CTEST_COMMAND}'") set(arg "") if(NOT _isMultiConfig) set(arg "-DCMAKE_BUILD_TYPE:STRING=@cfg@") +else() + set(arg "-DCMAKE_CONFIGURATION_TYPES=Debug\\;Release\\;MinSizeRel\\;RelWithDebInfo") endif() message("cmake initial configure") diff --git a/Tests/CTestConfig/script.cmake.in b/Tests/CTestConfig/script.cmake.in index 973c7b8c4..59c585be5 100644 --- a/Tests/CTestConfig/script.cmake.in +++ b/Tests/CTestConfig/script.cmake.in @@ -6,7 +6,14 @@ set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestConfig/@cfg@-script") ctest_start(Experimental) -ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE rv) +set(_isMultiConfig "@_isMultiConfig@") +if(_isMultiConfig) + set(cfg_opts "-DCMAKE_CONFIGURATION_TYPES=Debug\\;Release\\;MinSizeRel\\;RelWithDebInfo") +else() + set(cfg_opts) +endif() + +ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS "${cfg_opts}" RETURN_VALUE rv) if(NOT rv STREQUAL 0) message(FATAL_ERROR "*** error in ctest_configure ***") endif() |