summaryrefslogtreecommitdiff
path: root/Tests/ConfigSources
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-05 15:37:44 +0000
committerKitware Robot <kwrobot@kitware.com>2021-04-05 11:37:50 -0400
commit51f285b998948bd770c5aa7a5457d8526827d66f (patch)
tree3623804a55f21eebafd6d1a17eac5f00d40594b8 /Tests/ConfigSources
parent005e1eece889d8202677f85123a9942cff0cf354 (diff)
parentce1cadd35a26bd44879675581d8e70b00ff8e0fc (diff)
downloadcmake-51f285b998948bd770c5aa7a5457d8526827d66f.tar.gz
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
Diffstat (limited to 'Tests/ConfigSources')
-rw-r--r--Tests/ConfigSources/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/ConfigSources/CMakeLists.txt b/Tests/ConfigSources/CMakeLists.txt
index 219a972440..38475f86dc 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