diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2019-11-06 09:10:09 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-11-07 16:14:46 +0100 |
commit | 8a7abf248011057295d34c6649393f1ec1777b96 (patch) | |
tree | 6d6a21cd749aa960338d66db8b23f904b8ac6829 | |
parent | 920c08eaf8fc8f51d6ce67ba0eb9bd989f997580 (diff) | |
download | libssh-8a7abf248011057295d34c6649393f1ec1777b96.tar.gz libssh-8a7abf248011057295d34c6649393f1ec1777b96.tar.xz libssh-8a7abf248011057295d34c6649393f1ec1777b96.zip |
cmake: Add option to build shared libs
See https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
(cherry picked from commit c2c354539112eb89862ec4472af3ea5aeafa2824)
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | DefineOptions.cmake | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 953bfe83..49a9389a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -222,6 +222,7 @@ message(STATUS "Server support : ${WITH_SERVER}") message(STATUS "GSSAPI support : ${WITH_GSSAPI}") message(STATUS "GEX support : ${WITH_GEX}") message(STATUS "Pcap debugging support : ${WITH_PCAP}") +message(STATUS "Build shared library: ${BUILD_SHARED_LIBS}") message(STATUS "Unit testing: ${UNIT_TESTING}") message(STATUS "Client code testing: ${CLIENT_TESTING}") message(STATUS "Blowfish cipher support: ${WITH_BLOWFISH_CIPHER}") diff --git a/DefineOptions.cmake b/DefineOptions.cmake index ac81b47b..b82a5018 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -10,6 +10,7 @@ option(WITH_MBEDTLS "Compile against libmbedtls" OFF) option(WITH_BLOWFISH_CIPHER "Compile with blowfish support" OFF) option(WITH_PCAP "Compile with Pcap generation support" ON) option(WITH_INTERNAL_DOC "Compile doxygen internal documentation" OFF) +option(BUILD_SHARED_LIBS "Build shared libraries" ON) option(UNIT_TESTING "Build with unit tests" OFF) option(CLIENT_TESTING "Build with client tests; requires openssh" OFF) option(SERVER_TESTING "Build with server tests; requires openssh and dropbear" OFF) |