Files
CMake/Tests/RunCMake/CTest/SingleConfig.cmake
Brad King b9cb1d324d Fix regression in test/install/package configuration selection
In commit 7a969fe21d (cmMakefile: Refactor API to better handle empty
config values, 2020-06-30, v3.19.0-rc1~567^2), calls to
`GetGeneratorConfigs` that pass `OnlyMultiConfig` only want to get any
configurations listed if the generator is multi-config.  Fix the
implementation to actually do that.

Fixes: #21316
2020-10-15 10:53:09 -04:00

7 lines
239 B
CMake

include(CTest)
# This should be ignored by single-config generators.
set(CMAKE_CONFIGURATION_TYPES "Release;Debug" CACHE INTERNAL "Supported configuration types")
add_test(NAME SingleConfig COMMAND ${CMAKE_COMMAND} -E echo SingleConfig)