diff options
author | Slávek Banko <[email protected]> | 2017-02-18 14:11:58 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-02-18 14:11:58 +0100 |
commit | 2f4470466873b05f57ef968d2447ad1577b9f669 (patch) | |
tree | 47bdee89e941900e48e2bae13e76f146bc61bd79 /modules/TDEMacros.cmake | |
parent | 6455cb89f3f39b76326df5fc2558d42b6088a0e5 (diff) | |
download | tde-cmake-2f4470466873b05f57ef968d2447ad1577b9f669.tar.gz tde-cmake-2f4470466873b05f57ef968d2447ad1577b9f669.zip |
Fix '.la' file name for libraries with dot in name
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 5f155b4..97c8b04 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -259,8 +259,8 @@ endmacro( ) macro( tde_install_la_file _target _destination ) get_target_property( _target_location ${_target} LOCATION ) - get_filename_component( _laname ${_target_location} NAME_WE ) get_filename_component( _soname ${_target_location} NAME ) + string( REGEX REPLACE "\\.so(\\.[0-9]+)*$" "" _laname "${_soname}" ) set( _laname ${CMAKE_CURRENT_BINARY_DIR}/${_laname}.la ) file( WRITE ${_laname} @@ -450,7 +450,8 @@ macro( tde_install_libtool_file _target _destination ) get_target_property( _target_location ${_target} LOCATION ) # get name of target - get_filename_component( _name ${_target_location} NAME_WE ) + get_filename_component( _name ${_target_location} NAME ) + string( REGEX REPLACE "\\.so(\\.[0-9]+)*$" "" _name "${_name}" ) # get .la name set( _laname ${_name}.la ) |