summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-12-12 17:05:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-12-12 17:05:57 (GMT)
commitf6e29e04051326861afc0b4fc98a77e20b366ff0 (patch)
tree4a5677bb216c5dd61b75dd919aeac9e76cf76c7a /Tests
parent4fb9c880425ade41735951347d4e7d004a4e1e47 (diff)
parentaf9d4f24ae3df599048ce69831e2635fb3605f90 (diff)
downloadCMake-f6e29e04051326861afc0b4fc98a77e20b366ff0.zip
CMake-f6e29e04051326861afc0b4fc98a77e20b366ff0.tar.gz
CMake-f6e29e04051326861afc0b4fc98a77e20b366ff0.tar.bz2
Merge topic 'link-options-propagation'
af9d4f24ae Link properties: must be transitive over private dependency on static library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4130
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/target_link_options/CMP0099.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/Tests/RunCMake/target_link_options/CMP0099.cmake b/Tests/RunCMake/target_link_options/CMP0099.cmake
index 9dee964..edb457e 100644
--- a/Tests/RunCMake/target_link_options/CMP0099.cmake
+++ b/Tests/RunCMake/target_link_options/CMP0099.cmake
@@ -9,8 +9,11 @@ endif()
add_library(LinkOptions_interface INTERFACE)
target_link_options (LinkOptions_interface INTERFACE ${pre}BADFLAG_INTERFACE${obj})
-add_library(LinkOptions_static STATIC LinkOptionsLib.c)
-target_link_libraries (LinkOptions_static PRIVATE LinkOptions_interface)
+add_library(LinkOptions_static1 STATIC LinkOptionsLib.c)
+target_link_libraries (LinkOptions_static1 PRIVATE LinkOptions_interface)
+
+add_library(LinkOptions_static2 STATIC LinkOptionsLib.c)
+target_link_libraries (LinkOptions_static2 PRIVATE LinkOptions_static1)
add_executable(LinkOptions_exe LinkOptionsExe.c)
-target_link_libraries (LinkOptions_exe PRIVATE LinkOptions_static)
+target_link_libraries (LinkOptions_exe PRIVATE LinkOptions_static2)