diff options
author | Timothy Pearson <[email protected]> | 2014-03-28 17:47:45 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-03-28 17:47:45 -0500 |
commit | f4055629928cc70c5d29f9e8c4386441b7717a16 (patch) | |
tree | 64913d8668ce55ce5e2deeeece68543370325f1c | |
parent | 5e4b4371800526bccacadd1bcc478410b59a7a69 (diff) | |
download | tde-cmake-f4055629928cc70c5d29f9e8c4386441b7717a16.tar.gz tde-cmake-f4055629928cc70c5d29f9e8c4386441b7717a16.zip |
Load metadata into versioned libraries
-rw-r--r-- | modules/TDEMacros.cmake | 8 |
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 ) |