CMake/Tests/RunCMake/GeneratorExpression/BadStrEqual-stderr.txt
Stephen Kelly b3d8f5dab7 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.
2012-10-09 08:26:43 -04:00

39 lines
1.1 KiB
Plaintext

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\)$