mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 22:30:13 -06:00
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
7 lines
239 B
CMake
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)
|