summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0022
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-26 14:28:02 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-26 14:28:02 (GMT)
commit1b21ac405f7c0fecff26abac05423adeb281c6c1 (patch)
tree9508b478af457be4cf0664c08fde3d65eeae3a82 /Tests/RunCMake/CMP0022
parent564cf169e6edfe54ee3b558cf86c2a15936430d3 (diff)
parent239b0c6b0ed821fd012a2a980961b9a9d43793e5 (diff)
downloadCMake-1b21ac405f7c0fecff26abac05423adeb281c6c1.zip
CMake-1b21ac405f7c0fecff26abac05423adeb281c6c1.tar.gz
CMake-1b21ac405f7c0fecff26abac05423adeb281c6c1.tar.bz2
Merge topic 'fix-tll-static-private'
239b0c6 Don't add invalid content to static lib INTERFACE_LINK_LIBRARIES.
Diffstat (limited to 'Tests/RunCMake/CMP0022')
-rw-r--r--Tests/RunCMake/CMP0022/CMP0022-NOWARN-static.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMP0022/CMP0022-NOWARN-static.cmake b/Tests/RunCMake/CMP0022/CMP0022-NOWARN-static.cmake
index 3e4144f..ad3b8df 100644
--- a/Tests/RunCMake/CMP0022/CMP0022-NOWARN-static.cmake
+++ b/Tests/RunCMake/CMP0022/CMP0022-NOWARN-static.cmake
@@ -5,4 +5,8 @@ add_library(foo STATIC empty_vs6_1.cpp)
add_library(bar STATIC empty_vs6_2.cpp)
add_library(bat STATIC empty_vs6_3.cpp)
target_link_libraries(foo bar)
-target_link_libraries(bar bat)
+# The last element here needs to contain a space so that it is a single
+# element which is not a valid target name. As bar is a STATIC library,
+# this tests that the LINK_ONLY generator expression is not used for
+# that element, creating an error.
+target_link_libraries(bar bat "-lz -lm")