aboutsummaryrefslogtreecommitdiff
path: root/DefineOptions.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-11-06 08:58:34 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-11-06 09:11:09 +0100
commit1111453439af3367aea1678a0580f41ae6189941 (patch)
tree779a03c212f2d0ac3b0a1dd0fae8fe5cc4ad3cc0 /DefineOptions.cmake
parent9a1daedbe5c865f880ff81e9947c371f0f714b7c (diff)
downloadlibssh-1111453439af3367aea1678a0580f41ae6189941.tar.gz
libssh-1111453439af3367aea1678a0580f41ae6189941.tar.xz
libssh-1111453439af3367aea1678a0580f41ae6189941.zip
cmake: Remove WITH_STATIC_LIB
We will honor BUILD_SHARED_LIBS from cmake next. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'DefineOptions.cmake')
-rw-r--r--DefineOptions.cmake9
1 files changed, 2 insertions, 7 deletions
diff --git a/DefineOptions.cmake b/DefineOptions.cmake
index 52b68a73..ac81b47b 100644
--- a/DefineOptions.cmake
+++ b/DefineOptions.cmake
@@ -2,7 +2,6 @@ option(WITH_GSSAPI "Build with GSSAPI support" ON)
option(WITH_ZLIB "Build with ZLIB support" ON)
option(WITH_SFTP "Build with SFTP support" ON)
option(WITH_SERVER "Build with SSH server support" ON)
-option(WITH_STATIC_LIB "Build with a static library" OFF)
option(WITH_DEBUG_CRYPTO "Build with cryto debug output" OFF)
option(WITH_DEBUG_PACKET "Build with packet debug output" OFF)
option(WITH_DEBUG_CALLTRACE "Build with calltrace debug output" ON)
@@ -34,13 +33,9 @@ if (WITH_BENCHMARKS)
set(CLIENT_TESTING ON)
endif()
-if (WITH_STATIC_LIB)
- set(BUILD_STATIC_LIB ON)
-endif (WITH_STATIC_LIB)
-
-if (UNIT_TESTING)
+if (UNIT_TESTING OR CLIENT_TESTING OR SERVER_TESTING)
set(BUILD_STATIC_LIB ON)
-endif (UNIT_TESTING)
+endif()
if (WITH_NACL)
set(WITH_NACL ON)