From 94a57df0c9eceda18679b2823de74837fb5a73c1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Jul 2009 00:46:57 +0200 Subject: Compile the library with the map file again. --- libssh/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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} -- cgit