summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/CMakeLists.txt11
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 ()