From 57d752a1c31d64ef197444d6bf8f1f2726776661 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 10 Dec 2010 20:02:15 +0100 Subject: include: Only require LIBSSH_STATIC on Windows. --- src/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e8516f01..ab6c4e77 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -190,10 +190,17 @@ if (WITH_STATIC_LIB) ${LIBRARY_SOVERSION} OUTPUT_NAME ssh - COMPILE_FLAGS - "-DLIBSSH_STATIC" ) + if (WIN32) + set_target_properties( + ${LIBSSH_STATIC_LIBRARY} + PROPERTIES + COMPILE_FLAGS + "-DLIBSSH_STATIC" + ) + endif (WIN32) + install( TARGETS ${LIBSSH_STATIC_LIBRARY} -- cgit