aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libssh/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt
index 89288db5..c890b94c 100644
--- a/libssh/CMakeLists.txt
+++ b/libssh/CMakeLists.txt
@@ -155,6 +155,15 @@ set_target_properties(
ssh
)
+if (UNIX AND CMAKE_COMPILER_IS_GNUCC)
+ set_target_properties(
+ ${LIBSSH_SHARED_LIBRARY}
+ PROPERTIES
+ LINK_FLAGS
+ -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libssh.map
+)
+endif (UNIX AND CMAKE_COMPILER_IS_GNUCC)
+
install(
TARGETS
${LIBSSH_SHARED_LIBRARY}