aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-12 14:05:17 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-12 14:05:17 +0200
commitd9b7e4cb7a40fe171aea1411ce8cfabc25036bb3 (patch)
tree0b5c0a485e8cde7f3bf645de55fbf0ca28cf5ffc /libssh
parent8e6ab1809fe7c6fa63385790aabb4f1468d1c411 (diff)
downloadlibssh-d9b7e4cb7a40fe171aea1411ce8cfabc25036bb3.tar.gz
libssh-d9b7e4cb7a40fe171aea1411ce8cfabc25036bb3.tar.xz
libssh-d9b7e4cb7a40fe171aea1411ce8cfabc25036bb3.zip
Fix compilation with visibility flags with mingw.
Thanks to Patrick Spendrin.
Diffstat (limited to 'libssh')
-rw-r--r--libssh/CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt
index 9274f6f3..2fc8adbb 100644
--- a/libssh/CMakeLists.txt
+++ b/libssh/CMakeLists.txt
@@ -73,10 +73,6 @@ if (GCRYPT_LIBRARY)
)
endif (GCRYPT_LIBRARY)
-if (WITH_VISIBILITY_HIDDEN)
- set(LIBSSH_SHARED_CFLAGS "-fvisibility=hidden")
-endif (WITH_VISIBILITY_HIDDEN)
-
set(libssh_SRCS
agent.c
auth.c
@@ -158,10 +154,13 @@ set_target_properties(
ssh
DEFINE_SYMBOL
LIBSSH_EXPORTS
- COMPILE_FLAGS
- ${LIBSSH_SHARED_CFLAGS}
)
+if (WITH_VISIBILITY_HIDDEN)
+ set_target_properties(${LIBSSH_SHARED_LIBRARY} PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
+endif (WITH_VISIBILITY_HIDDEN)
+
+
install(
TARGETS
${LIBSSH_SHARED_LIBRARY}