diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-08-11 18:16:43 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-08-11 18:16:43 +0200 |
commit | db284d60b97bbee864d88737b4f8c6ae5b03c8ff (patch) | |
tree | 468b35289d169c3a0c28399145e3a03cbc3fdf55 /libssh | |
parent | bfc6c7e6063e81677e0026669f391a5127cf5975 (diff) | |
download | libssh-db284d60b97bbee864d88737b4f8c6ae5b03c8ff.tar.gz libssh-db284d60b97bbee864d88737b4f8c6ae5b03c8ff.tar.xz libssh-db284d60b97bbee864d88737b4f8c6ae5b03c8ff.zip |
Fix static build.
If you want to link against the static library you have to define
LIBSSH_STATIC and link against ssh_static.
gcc -static -DLIBSSH_STATIC -lssh_static foo.c -o foo
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/CMakeLists.txt | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt index 3af8d8a9..9274f6f3 100644 --- a/libssh/CMakeLists.txt +++ b/libssh/CMakeLists.txt @@ -156,10 +156,8 @@ set_target_properties( ${LIBRARY_SOVERSION} OUTPUT_NAME ssh - CLEAN_DIRECT_OUTPUT - 1 DEFINE_SYMBOL - SSH_EXPORTS + LIBSSH_EXPORTS COMPILE_FLAGS ${LIBSSH_SHARED_CFLAGS} ) @@ -183,10 +181,8 @@ if (WITH_STATIC_LIB) ${LIBRARY_VERSION} SOVERSION ${LIBRARY_SOVERSION} - OUTPUT_NAME - ssh - CLEAN_DIRECT_OUTPUT - 1 + COMPILE_FLAGS + "-DLIBSSH_STATIC" ) install( |