diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-08 19:15:20 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-08 19:15:20 +0000 |
commit | bf0721e330706cc03f532a5a616197acc1dadf95 (patch) | |
tree | fb39b334fad89050f44eab17e96191a72abe8dcc | |
parent | 36c1f10bcd79f4131f0ed6e7902760e9a8be894c (diff) | |
download | tde-cmake-bf0721e330706cc03f532a5a616197acc1dadf95.tar.gz tde-cmake-bf0721e330706cc03f532a5a616197acc1dadf95.zip |
[kde-common/cmake] avoid transitive linking to convenience libraries
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/cmake@1183935 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | modules/TDEMacros.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index adf9d3b..985b768 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -407,11 +407,12 @@ macro( tde_add_library _arg_target ) set_target_properties( ${_target} PROPERTIES VERSION ${_version} SOVERSION ${_soversion} ) endif( _version ) + # set interface libraries + target_link_libraries( ${_target} LINK_INTERFACE_LIBRARIES ${_link} ) + # set embedded archives if( _embed ) - list( INSERT _link 0 "-Wl,-no-whole-archive" ) - list( INSERT _link 0 ${_embed} ) - list( INSERT _link 0 "-Wl,-whole-archive" ) + list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive ) endif( _embed ) # set link libraries |