diff options
author | Brad King <brad.king@kitware.com> | 2021-04-05 15:37:44 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-04-05 15:37:50 (GMT) |
commit | 51f285b998948bd770c5aa7a5457d8526827d66f (patch) | |
tree | 3623804a55f21eebafd6d1a17eac5f00d40594b8 | |
parent | 005e1eece889d8202677f85123a9942cff0cf354 (diff) | |
parent | ce1cadd35a26bd44879675581d8e70b00ff8e0fc (diff) | |
download | CMake-51f285b998948bd770c5aa7a5457d8526827d66f.zip CMake-51f285b998948bd770c5aa7a5457d8526827d66f.tar.gz CMake-51f285b998948bd770c5aa7a5457d8526827d66f.tar.bz2 |
Merge topic 'tests-CMAKE_BUILD_TYPE-None'
ce1cadd35a Tests/ConfigSources: fix for non main stream CMAKE_BUILD_TYPE
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5967
-rw-r--r-- | Tests/ConfigSources/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/ConfigSources/CMakeLists.txt b/Tests/ConfigSources/CMakeLists.txt index 219a972..38475f8 100644 --- a/Tests/ConfigSources/CMakeLists.txt +++ b/Tests/ConfigSources/CMakeLists.txt @@ -75,10 +75,10 @@ add_custom_command(APPEND VERBATIM ) foreach(n RANGE 1 5) - set_property(SOURCE custom${n}_Debug.cpp PROPERTY COMPILE_DEFINITIONS CUSTOM_CFG_DEBUG) - foreach(other Release RelWithDebInfo MinSizeRel) + foreach(other ${CMAKE_BUILD_TYPE} Release RelWithDebInfo MinSizeRel) set_property(SOURCE custom${n}_${other}.cpp PROPERTY COMPILE_DEFINITIONS CUSTOM_CFG_OTHER) endforeach() + set_property(SOURCE custom${n}_Debug.cpp PROPERTY COMPILE_DEFINITIONS CUSTOM_CFG_DEBUG) endforeach() add_library(Custom STATIC custom1_$<CONFIG>.cpp |