| 1 |
set(CMAKE_CONFIGURATION_TYPES Debug Release) |
| 2 |
enable_language(CXX) |
| 3 |
|
| 4 |
# An empty string suppresses generation of the setting. |
| 5 |
set(CMAKE_VS_USE_DEBUG_LIBRARIES "") |
| 6 |
add_library(empty empty.cxx) |
| 7 |
add_library(emptyCLR empty.cxx) |
| 8 |
set_property(TARGET emptyCLR PROPERTY COMMON_LANGUAGE_RUNTIME "") |
| 9 |
add_custom_target(emptyUtil) |
| 10 |
|
| 11 |
# A generator expression can encode per-config values. |
| 12 |
set(CMAKE_VS_USE_DEBUG_LIBRARIES "$<CONFIG:Debug>") |
| 13 |
add_library(genex empty.cxx) |
| 14 |
add_library(genexCLR empty.cxx) |
| 15 |
set_property(TARGET genexCLR PROPERTY COMMON_LANGUAGE_RUNTIME "") |
| 16 |
add_custom_target(genexUtil) |
| 17 |
|
| 18 |
# The last setting in the top-level directcory affects |
| 19 |
# the builtin targets like ALL_BUILD and ZERO_CHECK. |
| 20 |
set(CMAKE_VS_USE_DEBUG_LIBRARIES 0) |