summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2023-01-17 18:04:13 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2023-01-20 18:30:25 (GMT)
commit910ada1a88f4196cd441d6c6cde9c30629785d6e (patch)
tree0243a3e3b74773538074624fe8e5cac6edc5fbfd /Tests/RunCMake/GeneratorExpression
parent42e417ad1223a776399b427de2216b838a0bc1f6 (diff)
downloadCMake-910ada1a88f4196cd441d6c6cde9c30629785d6e.zip
CMake-910ada1a88f4196cd441d6c6cde9c30629785d6e.tar.gz
CMake-910ada1a88f4196cd441d6c6cde9c30629785d6e.tar.bz2
Genex: $<CONFIG:> syntax of all entries checked
Fixes #24327
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression')
-rw-r--r--Tests/RunCMake/GeneratorExpression/BadCONFIG-stderr.txt9
-rw-r--r--Tests/RunCMake/GeneratorExpression/BadCONFIG.cmake1
2 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/BadCONFIG-stderr.txt b/Tests/RunCMake/GeneratorExpression/BadCONFIG-stderr.txt
index 130de2b..b61ccd2 100644
--- a/Tests/RunCMake/GeneratorExpression/BadCONFIG-stderr.txt
+++ b/Tests/RunCMake/GeneratorExpression/BadCONFIG-stderr.txt
@@ -25,4 +25,13 @@ CMake Error at BadCONFIG.cmake:1 \(add_custom_target\):
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)
+
+CMake Warning at BadCONFIG.cmake:1 \(add_custom_target\):
+ Warning evaluating generator expression:
+
+ \$<CONFIG:Release,Foo-Second>
+
+ The config name of "Foo-Second" is invalid
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
++
CMake Generate step failed\. Build files cannot be regenerated correctly\.$
diff --git a/Tests/RunCMake/GeneratorExpression/BadCONFIG.cmake b/Tests/RunCMake/GeneratorExpression/BadCONFIG.cmake
index 1735ab7..4d7a357 100644
--- a/Tests/RunCMake/GeneratorExpression/BadCONFIG.cmake
+++ b/Tests/RunCMake/GeneratorExpression/BadCONFIG.cmake
@@ -2,4 +2,5 @@ add_custom_target(check ALL COMMAND check
$<CONFIG:.>
$<CONFIG:Foo-Bar>
$<$<CONFIG:Foo-Nested>:foo>
+ $<$<CONFIG:Release,Foo-Second>:foo>
VERBATIM)