diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-06-23 13:18:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-24 12:38:28 (GMT) |
commit | eae15dce6a3fdb9b02c86891553e5cf408401672 (patch) | |
tree | 64cf6df050ff8eb423b86d2744bb6a0c80043fca /Tests/RunCMake/GeneratorExpression/CONFIG-multiple-entries.cmake | |
parent | c4cc21d20b79d682a99cc28957cf973ebf1993ff (diff) | |
download | CMake-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.cmake | 8 |
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}") |