summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-01 11:05:19 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-01 11:05:19 +0200
commit67b44e4417d17199460c0c84b0bb194ff9a9e50c (patch)
treea2f9456f369e08a0c7f108d2439c7a37846f3920
parent83f65031c0e2bfb5bca323e27eabadcc4823a754 (diff)
downloadlibssh-67b44e4417d17199460c0c84b0bb194ff9a9e50c.tar.gz
libssh-67b44e4417d17199460c0c84b0bb194ff9a9e50c.tar.xz
libssh-67b44e4417d17199460c0c84b0bb194ff9a9e50c.zip
Don't use the map file if the build type is debug.
-rw-r--r--libssh/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt
index 023759e1..d05d54ce 100644
--- a/libssh/CMakeLists.txt
+++ b/libssh/CMakeLists.txt
@@ -162,14 +162,14 @@ set_target_properties(
ssh
)
-if (UNIX AND CMAKE_COMPILER_IS_GNUCC)
+if (UNIX AND CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
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)
+endif (UNIX AND CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
install(
TARGETS