1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

Don't use the map file if the build type is debug.

This commit is contained in:
Andreas Schneider
2009-08-01 11:05:19 +02:00
parent 83f65031c0
commit 67b44e4417

View File

@@ -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