diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e8516f0..ab6c4e7 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} |