summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2022-11-06 00:56:15 +0100
committerSlávek Banko <[email protected]>2022-11-06 00:56:15 +0100
commit25734cf5067ccfe838f5ec5df6b6bd7f053d3620 (patch)
tree73f8495d3aaff5e290d80b4bbffac1dec4a2f282
parent6b4c7a9ef0ca01d10c5634e7cecc51e1afcacb36 (diff)
downloadtde-cmake-25734cf5067ccfe838f5ec5df6b6bd7f053d3620.tar.gz
tde-cmake-25734cf5067ccfe838f5ec5df6b6bd7f053d3620.zip
tde_add_library: Link embedded libraries as PRIVATE.
Private linked libraries are now listed among the first. Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--modules/TDEMacros.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 0fac197..590d4a8 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1126,9 +1126,9 @@ macro( tde_add_library _arg_target )
# set embedded archives
if( _embed )
if( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" )
- list( INSERT _link 0 -Wl,-zallextract ${_embed} -Wl,-zdefaultextract )
+ list( INSERT _link_private 0 -Wl,-zallextract ${_embed} -Wl,-zdefaultextract )
else( )
- list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
+ list( INSERT _link_private 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
endif( )
endif( _embed )
@@ -1138,9 +1138,9 @@ macro( tde_add_library _arg_target )
if( _link )
list( INSERT _link 0 "PUBLIC" )
endif()
- list( APPEND _link "PRIVATE" )
+ list( INSERT _link_private 0 "PRIVATE" )
endif()
- list( APPEND _link ${_link_private} )
+ list( INSERT _link 0 ${_link_private} )
endif( _link_private )
# set link libraries