summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/BadStrEqual-stderr.txt
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-10-03 22:34:03 (GMT)
committerBrad King <brad.king@kitware.com>2012-10-09 12:26:43 (GMT)
commitb3d8f5dab7f33dba4f327ab7ef4bd7ea90d6b651 (patch)
tree10345c74b3bc115a0115fd8489827ababbc07e4c /Tests/RunCMake/GeneratorExpression/BadStrEqual-stderr.txt
parenta4985a9af9ed9762c1a51c369981609dd24f7425 (diff)
downloadCMake-b3d8f5dab7f33dba4f327ab7ef4bd7ea90d6b651.zip
CMake-b3d8f5dab7f33dba4f327ab7ef4bd7ea90d6b651.tar.gz
CMake-b3d8f5dab7f33dba4f327ab7ef4bd7ea90d6b651.tar.bz2
GenEx: Parse comma after colon tokens specially
Otherwise the comma is treated as plain text by ParseContent. $<STREQUAL:,> should be valid and true. $<STREQUAL:,something> should be valid and false. $<STREQUAL:,,> should be non-valid as it is 3 parameters. $<STREQUAL:something,,> should be non-valid as it is 3 parameters. Additionally, this allows reporting the correct error for other expressions. For example $<TARGET_PROPERTY:,> should be invalid because it has an empty target and empty property. It shouldn't attempt to read the property ',' on the 'implicit this' target.
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/BadStrEqual-stderr.txt')
-rw-r--r--Tests/RunCMake/GeneratorExpression/BadStrEqual-stderr.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/BadStrEqual-stderr.txt b/Tests/RunCMake/GeneratorExpression/BadStrEqual-stderr.txt
new file mode 100644
index 0000000..dd0d931
--- /dev/null
+++ b/Tests/RunCMake/GeneratorExpression/BadStrEqual-stderr.txt
@@ -0,0 +1,38 @@
+CMake Error at BadStrEqual.cmake:1 \(add_custom_target\):
+ Error evaluating generator expression:
+
+ \$<STREQUAL>
+
+ \$<STREQUAL> expression requires 2 comma separated parameters, but got 0
+ instead.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
++CMake Error at BadStrEqual.cmake:1 \(add_custom_target\):
+ Error evaluating generator expression:
+
+ \$<STREQUAL:>
+
+ \$<STREQUAL> expression requires 2 comma separated parameters, but got 1
+ instead.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
++
+CMake Error at BadStrEqual.cmake:1 \(add_custom_target\):
+ Error evaluating generator expression:
+
+ \$<STREQUAL:,,>
+
+ \$<STREQUAL> expression requires 2 comma separated parameters, but got 3
+ instead.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
++
+CMake Error at BadStrEqual.cmake:1 \(add_custom_target\):
+ Error evaluating generator expression:
+
+ \$<STREQUAL:something,,>
+
+ \$<STREQUAL> expression requires 2 comma separated parameters, but got 3
+ instead.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)$