summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/File_Generate
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-18 14:05:04 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-18 14:29:36 (GMT)
commitac0cf7ff4f5a846381593cf28ebbc9cfaf107149 (patch)
treec87e38b9518483b9f7d7fbab681a38d6927a7998 /Tests/RunCMake/File_Generate
parent8577978c580d09abc56fa39f387a3991c91c31ba (diff)
downloadCMake-ac0cf7ff4f5a846381593cf28ebbc9cfaf107149.zip
CMake-ac0cf7ff4f5a846381593cf28ebbc9cfaf107149.tar.gz
CMake-ac0cf7ff4f5a846381593cf28ebbc9cfaf107149.tar.bz2
Genex: Reject TARGET_OBJECTS on non-object libraries earlier
Move the diagnostic that rejects the TARGET_OBJECTS generator expression in non-buildsystem context until after the check for whether the named target is an object library. This order will makes more sense than the previous order once TARGET_OBJECTS is allowed in non-buildsystem context.
Diffstat (limited to 'Tests/RunCMake/File_Generate')
-rw-r--r--Tests/RunCMake/File_Generate/OutputNameMatchesObjects-stderr.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/Tests/RunCMake/File_Generate/OutputNameMatchesObjects-stderr.txt b/Tests/RunCMake/File_Generate/OutputNameMatchesObjects-stderr.txt
index d3aa973..b08ef5a 100644
--- a/Tests/RunCMake/File_Generate/OutputNameMatchesObjects-stderr.txt
+++ b/Tests/RunCMake/File_Generate/OutputNameMatchesObjects-stderr.txt
@@ -1,9 +1,8 @@
-CMake Error at OutputNameMatchesObjects.cmake:2 \(file\):
+CMake Error at OutputNameMatchesObjects.cmake:[0-9]+ \(file\):
Error evaluating generator expression:
\$<TARGET_OBJECTS:foo>
- The evaluation of the TARGET_OBJECTS generator expression is only suitable
- for consumption by CMake. It is not suitable for writing out elsewhere.
+ Objects of target "foo" referenced but is not an OBJECT library.
Call Stack \(most recent call first\):
- CMakeLists.txt:6 \(include\)
+ CMakeLists.txt:[0-9]+ \(include\)