aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-10 20:02:15 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-10 20:02:15 +0100
commit57d752a1c31d64ef197444d6bf8f1f2726776661 (patch)
tree5daead8cca98ed15c7a79a92a8c8c94088c3b87f /src/CMakeLists.txt
parentef1cfbea70be15ec318e97e2293b6466b7032fbc (diff)
downloadlibssh-57d752a1c31d64ef197444d6bf8f1f2726776661.tar.gz
libssh-57d752a1c31d64ef197444d6bf8f1f2726776661.tar.xz
libssh-57d752a1c31d64ef197444d6bf8f1f2726776661.zip
include: Only require LIBSSH_STATIC on Windows.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt11
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}