summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObjectLibrary/PostBuild-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-03-12 18:51:30 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-16 14:12:30 (GMT)
commit5683101669e677b5b8d7b50d817da54156afd626 (patch)
tree02dfede4765af90cfa0dd3f464ca9a632c63fe96 /Tests/RunCMake/ObjectLibrary/PostBuild-stderr.txt
parent69d3d1835c5f4bdf9fbe5e920517a74d82482455 (diff)
downloadCMake-5683101669e677b5b8d7b50d817da54156afd626.zip
CMake-5683101669e677b5b8d7b50d817da54156afd626.tar.gz
CMake-5683101669e677b5b8d7b50d817da54156afd626.tar.bz2
Test OBJECT library failure cases
Add "RunCMake.ObjectLibrary" test to verify that unsupported use cases are rejected with errors: * An OBJECT library may not reference another object library * An OBJECT library may not be referenced in target_link_libraries * An OBJECT library may not contain non-compiling sources * An OBJECT library may not have pre/post build/link commands * An OBJECT library may not be installed, exported, or imported Also verify that invalid $<TARGET_OBJECTS:...> expressions are diagnosed.
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/PostBuild-stderr.txt')
-rw-r--r--Tests/RunCMake/ObjectLibrary/PostBuild-stderr.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/PostBuild-stderr.txt b/Tests/RunCMake/ObjectLibrary/PostBuild-stderr.txt
new file mode 100644
index 0000000..4b067bb
--- /dev/null
+++ b/Tests/RunCMake/ObjectLibrary/PostBuild-stderr.txt
@@ -0,0 +1,5 @@
+CMake Error at PostBuild.cmake:2 \(add_custom_command\):
+ Target "A" is an OBJECT library that may not have PRE_BUILD, PRE_LINK, or
+ POST_BUILD commands.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)