summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-28 17:47:45 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-28 17:47:45 -0500
commitf4055629928cc70c5d29f9e8c4386441b7717a16 (patch)
tree64913d8668ce55ce5e2deeeece68543370325f1c
parent5e4b4371800526bccacadd1bcc478410b59a7a69 (diff)
downloadcmake-f4055629928cc70c5d29f9e8c4386441b7717a16.tar.gz
cmake-f4055629928cc70c5d29f9e8c4386441b7717a16.zip
Load metadata into versioned libraries
-rw-r--r--modules/TDEMacros.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 662ec94..61aceb3 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -818,6 +818,14 @@ macro( tde_add_library _arg_target )
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_soname} ${ELF_EMBEDDING_METADATA} || true
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_soname} || true
)
+ if( _version )
+ add_custom_command(
+ TARGET ${_target}
+ POST_BUILD
+ COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_soname}.${_version} ${ELF_EMBEDDING_METADATA} || true
+ COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_soname}.${_version} || true
+ )
+ endif( )
endif( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
endmacro( tde_add_library )