summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_link_libraries
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/CMakeCommands/target_link_libraries
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/CMakeCommands/target_link_libraries')
-rw-r--r--Tests/CMakeCommands/target_link_libraries/cmp0022/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/CMakeLists.txt b/Tests/CMakeCommands/target_link_libraries/cmp0022/CMakeLists.txt
index 07d7c43..33757b6 100644
--- a/Tests/CMakeCommands/target_link_libraries/cmp0022/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/CMakeLists.txt
@@ -22,6 +22,9 @@ generate_export_header(staticlib1)
add_library(staticlib2 STATIC staticlib2.cpp)
generate_export_header(staticlib2)
target_link_libraries(staticlib1 LINK_PUBLIC staticlib2)
+if (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang)
+ target_link_libraries(staticlib1 LINK_PRIVATE "-Wl,-v")
+endif()
add_executable(staticlib_exe staticlib_exe.cpp)
target_link_libraries(staticlib_exe staticlib1)