Files
CMake/Tests/RunCMake/GeneratorExpression/BadIF-stderr.txt
Colby Pike 895f7f16a7 Genex: Add IF generator expression
This allows a single condition to be used to choose between two
alternatives.  Without this the condition must be duplicated with
one surrounded by `NOT`.

Closes: #15585
2017-01-26 11:18:50 -05:00

16 lines
452 B
Plaintext

CMake Error at BadIF.cmake:2 \(add_custom_target\):
Error evaluating generator expression:
\$<IF:asdf,a,b>
First parameter to \$<IF> must resolve to exactly one '0' or '1' value.
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)
+
CMake Error at BadIF.cmake:2 \(add_custom_target\):
Error evaluating generator expression:
\$<IF:asdf,a>
\$<IF> expression requires 3 comma separated parameters, but got 2 instead.