diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 2b48d32..dd0e569 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -749,8 +749,8 @@ else() add_definitions(-DOPENSSLDIR=\"${CMAKE_INSTALL_PREFIX}/etc/ssl\") endif() +add_library(crypto-objects OBJECT ${CRYPTO_SRC}) if (BUILD_SHARED) - add_library(crypto-objects OBJECT ${CRYPTO_SRC}) add_library(crypto STATIC $) add_library(crypto-shared SHARED $) if (WIN32) diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index 5866e8e..d511c8e 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt @@ -48,8 +48,8 @@ set( t1_srvr.c ) +add_library(ssl-objects OBJECT ${SSL_SRC}) if (BUILD_SHARED) - add_library(ssl-objects OBJECT ${SSL_SRC}) add_library(ssl STATIC $) add_library(ssl-shared SHARED $) if (WIN32) diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index e384808..1f78038 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt @@ -29,8 +29,8 @@ else() add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") endif() +add_library(tls-objects OBJECT ${TLS_SRC}) if (BUILD_SHARED) - add_library(tls-objects OBJECT ${TLS_SRC}) add_library(tls STATIC $) add_library(tls-shared SHARED $) if (WIN32)