summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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