tde_add_library: Link embedded libraries as PRIVATE.

Private linked libraries are now listed among the first.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/87/head
Slávek Banko 2 years ago
parent 6b4c7a9ef0
commit 25734cf506
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1126,9 +1126,9 @@ macro( tde_add_library _arg_target )
# set embedded archives # set embedded archives
if( _embed ) if( _embed )
if( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" ) 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( ) 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( )
endif( _embed ) endif( _embed )
@ -1138,9 +1138,9 @@ macro( tde_add_library _arg_target )
if( _link ) if( _link )
list( INSERT _link 0 "PUBLIC" ) list( INSERT _link 0 "PUBLIC" )
endif() endif()
list( APPEND _link "PRIVATE" ) list( INSERT _link_private 0 "PRIVATE" )
endif() endif()
list( APPEND _link ${_link_private} ) list( INSERT _link 0 ${_link_private} )
endif( _link_private ) endif( _link_private )
# set link libraries # set link libraries

Loading…
Cancel
Save