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