summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/NinjaMultiConfig/ExcludeFromAll.cmake
blob: 52f84ea92089843f4e064429ee83bb3fb7d2c69d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enable_language(C)

set(CMAKE_CONFIGURATION_TYPES "Release;Debug" CACHE STRING "")
set(CMAKE_DEFAULT_BUILD_TYPE "Release" CACHE STRING "")
set(CMAKE_CROSS_CONFIGS "all" CACHE STRING "")
set(CMAKE_DEFAULT_CONFIGS "all" CACHE STRING "")

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

include(${CMAKE_CURRENT_LIST_DIR}/Common.cmake)
generate_output_files(release_only_tool)