summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExcludeFromAll/error-on-mixed-config.cmake
blob: 6c0ed1d4a6f0bb327648fc47445ba53cebfb3c14 (plain)
1
2
3
4
5
6
enable_language(C)

set(CMAKE_CONFIGURATION_TYPES "Release;Debug" CACHE STRING "")

add_executable(release_only_tool main.c)
set_property(TARGET release_only_tool PROPERTY EXCLUDE_FROM_ALL "$<NOT:$<CONFIG:Release>>")