diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-08-27 18:15:18 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-08-27 18:15:18 +0100 |
commit | 7e97bcb79eb6f83bc6a08b925dd70c3e38948ba1 (patch) | |
tree | c0974f59e7b9bd598a7e8b2101d218d5519df73d /wrappers/CMakeLists.txt | |
parent | 917533936b7e8c9d49d5f16db7c940408e5d955b (diff) |
cmake: Use LINK_DEPENDS for version scripts.
LINK_DEPENDS might ignored in non-Makefile generators, but
add_dependencies seems to have no effect anywhere...
Diffstat (limited to 'wrappers/CMakeLists.txt')
-rw-r--r-- | wrappers/CMakeLists.txt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/wrappers/CMakeLists.txt b/wrappers/CMakeLists.txt index b1618c62..4b21bc99 100644 --- a/wrappers/CMakeLists.txt +++ b/wrappers/CMakeLists.txt @@ -35,15 +35,10 @@ macro (target_linker_version_script target version_script) ) # XXX: Unfortunately LINK_DEPENDS is ignored in non-Makefile generators # See also http://www.cmake.org/pipermail/cmake/2010-May/037206.html - add_custom_target (${target}_version_script - DEPENDS ${version_script} - VERBATIM + set_property ( + TARGET ${target} + PROPERTY LINK_DEPENDS ${version_script} ) - #set_property ( - # TARGET ${target} - # PROPERTY LINK_DEPENDS ${version_script} - #) - add_dependencies (${target} ${target}_version_script) endif () endmacro () |