summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/BadOR-stderr.txt
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-10-20 12:14:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-10-20 12:23:47 (GMT)
commit4bacff7a4c1fa26d7c1fb93471578c8f67c96fdc (patch)
tree75a900017adcab1c4f50b079b6ab023ae4d3fbda /Tests/RunCMake/GeneratorExpression/BadOR-stderr.txt
parent982905c0d23aded548718cf64665002cac350e77 (diff)
downloadCMake-4bacff7a4c1fa26d7c1fb93471578c8f67c96fdc.zip
CMake-4bacff7a4c1fa26d7c1fb93471578c8f67c96fdc.tar.gz
CMake-4bacff7a4c1fa26d7c1fb93471578c8f67c96fdc.tar.bz2
GenEx: Test early determination of AND and OR
It should be possible for example to do this: "$<AND:${FOO},$<BOOL:${TGT}>,$<BOOL:$<TARGET_PROPERTY:${TGT},PROP>" such that it works simliarly to the C code: if (foo && tgt && tgt->prop()) { } The example of generator expression code is a little bit contrived as it could be written other ways with the same functionality. Nevertheless, as these cases already work and are intentional, test for them.
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/BadOR-stderr.txt')
-rw-r--r--Tests/RunCMake/GeneratorExpression/BadOR-stderr.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/BadOR-stderr.txt b/Tests/RunCMake/GeneratorExpression/BadOR-stderr.txt
index d4ccab7..eb26328 100644
--- a/Tests/RunCMake/GeneratorExpression/BadOR-stderr.txt
+++ b/Tests/RunCMake/GeneratorExpression/BadOR-stderr.txt
@@ -41,4 +41,13 @@ CMake Error at BadOR.cmake:1 \(add_custom_target\):
Parameters to \$<OR> must resolve to either '0' or '1'.
Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
++
+CMake Error at BadOR.cmake:1 \(add_custom_target\):
+ Error evaluating generator expression:
+
+ \$<OR:0,nothing>
+
+ Parameters to \$<OR> must resolve to either '0' or '1'.
+Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)$