summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/TDEMacros.cmake22
1 files changed, 6 insertions, 16 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index b0de2d0..fa1ad61 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1263,22 +1263,12 @@ macro( tde_add_library _arg_target )
get_target_property( _soversion ${_target} SOVERSION )
set( _soname "${_soname}.${_soversion}" )
endif( )
- if( NOT _exclude_from_all )
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_soname_base}"
- COMMAND ln -s ${_soname} "${CMAKE_CURRENT_BINARY_DIR}/${_soname_base}"
- DEPENDS ${_target}
- )
- add_custom_target(
- ${_target}+base-so ALL
- DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_soname_base}"
- )
- else( )
- add_custom_command(
- TARGET ${_target} POST_BUILD
- COMMAND ln -s ${_soname} "${CMAKE_CURRENT_BINARY_DIR}/${_soname_base}"
- )
- endif( )
+ add_custom_command(
+ TARGET ${_target} POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E create_symlink
+ "${_soname}"
+ "${CMAKE_CURRENT_BINARY_DIR}/${_soname_base}"
+ )
install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${_soname_base}" DESTINATION ${_destination} )
endif( )