diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-12-10 20:02:15 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-12-10 20:02:15 +0100 |
commit | 57d752a1c31d64ef197444d6bf8f1f2726776661 (patch) | |
tree | 5daead8cca98ed15c7a79a92a8c8c94088c3b87f /src | |
parent | ef1cfbea70be15ec318e97e2293b6466b7032fbc (diff) | |
download | libssh-57d752a1c31d64ef197444d6bf8f1f2726776661.tar.gz libssh-57d752a1c31d64ef197444d6bf8f1f2726776661.tar.xz libssh-57d752a1c31d64ef197444d6bf8f1f2726776661.zip |
include: Only require LIBSSH_STATIC on Windows.
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 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} |