diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-10-04 14:22:10 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-10-04 21:29:31 +0200 |
commit | 175e632803f9d40e019e6e7a8b3190b649b2f877 (patch) | |
tree | ed7df18442cc24edca7d38ee1d291b2a6245af5a /compat | |
parent | 672b2ff67eefa306f29384135e92b2dcd84efcdc (diff) |
Backport to cmake 3.12
The command target_link_options only appear in
cmake 3.13
Change-Id: Ie66464244a139531dfa8ca4f239c53f9d2f3afaa
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'compat')
-rw-r--r-- | compat/src/CMakeLists.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compat/src/CMakeLists.txt b/compat/src/CMakeLists.txt index b033987..7c8feca 100644 --- a/compat/src/CMakeLists.txt +++ b/compat/src/CMakeLists.txt @@ -27,14 +27,11 @@ set_target_properties(cynara-compat PROPERTIES VERSION ${CYNARA_VERSION} SOVERSION ${CYNARA_SOVERSION} + LINK_FLAGS -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-cynara-compat.map ) target_link_libraries(cynara-compat PRIVATE cynagora ) -target_link_options(cynara-compat - PRIVATE - -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-cynara-compat.map -) install(TARGETS cynara-compat LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}) ########################################### |