summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2017-11-27 21:11:11 (GMT)
committerDeniz Bahadir <dbahadir@benocs.com>2017-11-29 16:01:47 (GMT)
commitb0e2f1415e680337f4b70b19e319efeba0eb6f12 (patch)
treedefd33a0487fa8114d032d22a4a6fdadbf63820f /Tests/RunCMake
parent85457b63c859f238ef324757f1042cc846cedbc7 (diff)
downloadCMake-b0e2f1415e680337f4b70b19e319efeba0eb6f12.zip
CMake-b0e2f1415e680337f4b70b19e319efeba0eb6f12.tar.gz
CMake-b0e2f1415e680337f4b70b19e319efeba0eb6f12.tar.bz2
target_link_libraries: Slightly fix some error-messages.
Some error-messages are slightly adjusted to better tell what invocation would be correct instead. Tests are adjusted accordingly.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/ObjectLibrary/LinkObjRHS1-stderr.txt4
-rw-r--r--Tests/RunCMake/target_link_libraries/MixedSignature-stderr.txt4
2 files changed, 4 insertions, 4 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/LinkObjRHS1-stderr.txt b/Tests/RunCMake/ObjectLibrary/LinkObjRHS1-stderr.txt
index 8809f89..d5ee4f9 100644
--- a/Tests/RunCMake/ObjectLibrary/LinkObjRHS1-stderr.txt
+++ b/Tests/RunCMake/ObjectLibrary/LinkObjRHS1-stderr.txt
@@ -1,6 +1,6 @@
CMake Error at LinkObjRHS1.cmake:3 \(target_link_libraries\):
Target "AnObjLib" of type OBJECT_LIBRARY may not be linked into another
- target. One may link only to STATIC or SHARED libraries, or to executables
- with the ENABLE_EXPORTS property set.
+ target. One may link only to INTERFACE, STATIC or SHARED libraries, or to
+ executables with the ENABLE_EXPORTS property set.
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)
diff --git a/Tests/RunCMake/target_link_libraries/MixedSignature-stderr.txt b/Tests/RunCMake/target_link_libraries/MixedSignature-stderr.txt
index a0c66db..c6237f4 100644
--- a/Tests/RunCMake/target_link_libraries/MixedSignature-stderr.txt
+++ b/Tests/RunCMake/target_link_libraries/MixedSignature-stderr.txt
@@ -1,5 +1,5 @@
CMake Error at MixedSignature.cmake:6 \(target_link_libraries\):
- The PUBLIC or PRIVATE option must appear as the second argument, just after
- the target name.
+ The INTERFACE, PUBLIC or PRIVATE option must appear as the second argument,
+ just after the target name.
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)