summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compat/src/CMakeLists.txt5
-rw-r--r--src/CMakeLists.txt12
2 files changed, 5 insertions, 12 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})
###########################################
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cc7884c..8fdb9e7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -55,10 +55,8 @@ add_library(cynagora-core SHARED ${LIBCORE_SOURCES})
target_include_directories(cynagora-core PUBLIC .)
set_target_properties(cynagora-core PROPERTIES
VERSION ${CYNAGORA_VERSION}
- SOVERSION ${CYNAGORA_SOVERSION})
-target_link_libraries(cynagora-core
- PRIVATE
- -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-cynagora-core.map
+ SOVERSION ${CYNAGORA_SOVERSION}
+ LINK_FLAGS -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-cynagora-core.map
)
install(TARGETS cynagora-core LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR})
@@ -72,10 +70,8 @@ target_compile_definitions(cynagora PRIVATE
)
set_target_properties(cynagora PROPERTIES
VERSION ${CYNAGORA_VERSION}
- SOVERSION ${CYNAGORA_SOVERSION})
-target_link_options(cynagora
- PRIVATE
- -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-cynagora.map
+ SOVERSION ${CYNAGORA_SOVERSION}
+ LINK_FLAGS -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-cynagora.map
)
install(TARGETS cynagora LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR})
install(FILES cynagora.h DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR})