summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/CONFIG-multiple-entries.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-06-23 13:18:02 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-24 12:38:28 (GMT)
commiteae15dce6a3fdb9b02c86891553e5cf408401672 (patch)
tree64cf6df050ff8eb423b86d2744bb6a0c80043fca /Tests/RunCMake/GeneratorExpression/CONFIG-multiple-entries.cmake
parentc4cc21d20b79d682a99cc28957cf973ebf1993ff (diff)
downloadCMake-eae15dce6a3fdb9b02c86891553e5cf408401672.zip
CMake-eae15dce6a3fdb9b02c86891553e5cf408401672.tar.gz
CMake-eae15dce6a3fdb9b02c86891553e5cf408401672.tar.bz2
Genex: $<CONFIG:> now supports multiple configurations
Instead of having to do $<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>> you can do $<CONFIG:Release,MinSizeRel>
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/CONFIG-multiple-entries.cmake')
-rw-r--r--Tests/RunCMake/GeneratorExpression/CONFIG-multiple-entries.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/CONFIG-multiple-entries.cmake b/Tests/RunCMake/GeneratorExpression/CONFIG-multiple-entries.cmake
new file mode 100644
index 0000000..6829282
--- /dev/null
+++ b/Tests/RunCMake/GeneratorExpression/CONFIG-multiple-entries.cmake
@@ -0,0 +1,8 @@
+cmake_policy(SET CMP0070 NEW)
+
+set(text)
+string(APPEND text "$<$<CONFIG:CustomConfig>:1>")
+string(APPEND text "$<$<CONFIG:Release>:2>")
+string(APPEND text "$<$<CONFIG:Debug,Release>:3>")
+string(APPEND text "$<$<CONFIG:Release,CustomConfig,Debug>:4>")
+file(GENERATE OUTPUT CONFIG-multiple-entries-generated.txt CONTENT "${text}")