summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY-stderr.txt
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-05-28 20:02:57 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-05-29 09:29:31 (GMT)
commitfb2fa4765611bbf94fdf63a50ff20c5905d34057 (patch)
tree71e35fb7339df206bf77b4b58dadeba92446f926 /Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY-stderr.txt
parent5e9441cd39f9112acc052d465ebd9f21f29ad581 (diff)
downloadCMake-fb2fa4765611bbf94fdf63a50ff20c5905d34057.zip
CMake-fb2fa4765611bbf94fdf63a50ff20c5905d34057.tar.gz
CMake-fb2fa4765611bbf94fdf63a50ff20c5905d34057.tar.bz2
Genex: Clarify error message on use with non-binary targets (#14899).
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY-stderr.txt')
-rw-r--r--Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY-stderr.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY-stderr.txt b/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY-stderr.txt
new file mode 100644
index 0000000..0e87538
--- /dev/null
+++ b/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY-stderr.txt
@@ -0,0 +1,9 @@
+CMake Error at NonValidTarget-TARGET_POLICY.cmake:4 \(add_custom_command\):
+ Error evaluating generator expression:
+
+ \$<TARGET_POLICY:CMP0004>
+
+ \$<TARGET_POLICY:prop> may only be used with binary targets. It may not be
+ used with add_custom_command or add_custom_target.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)