mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2025-02-24 04:01:12 +00:00
Update CMakeLists.txt
Fix build. Use bundled openssl libs only when feature openssl is active
This commit is contained in:
parent
f04f846898
commit
8159d2b8a0
1 changed files with 26 additions and 24 deletions
|
@ -4,7 +4,7 @@ include(CheckIncludeFile)
|
|||
set(LIBS_BINARYDIR_DIR ${PROJECT_BINARY_DIR}/libs)
|
||||
set(LIBS_DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/downloads)
|
||||
|
||||
if(BUNDLED_OPENSSL)
|
||||
if(FEATURE_OPENSSL AND BUNDLED_OPENSSL)
|
||||
find_program(NASM_EXECUTABLE nasm)
|
||||
if(NOT NASM_EXECUTABLE)
|
||||
message(FATAL_ERROR "NASM not found")
|
||||
|
@ -130,6 +130,7 @@ if(WIN32)
|
|||
set_target_properties(bundled_jpeg PROPERTIES FOLDER ${BUNDLED_TARGETS_FOLDER})
|
||||
endif()
|
||||
|
||||
if(FEATURE_OPENSSL)
|
||||
if(BUNDLED_OPENSSL AND (BUILD_CLIENT OR BUILD_SERVER))
|
||||
set(OPENSSL_PREFIX "${CMAKE_BINARY_DIR}/openssl/build")
|
||||
set(OPENSSL_CONFIGURE "${PERL_EXECUTABLE}" Configure "${openssl_plat}" "--prefix=${OPENSSL_PREFIX}" "--openssldir=${OPENSSL_PREFIX}" no-shared no-unit-test -static)
|
||||
|
@ -154,6 +155,7 @@ if(WIN32)
|
|||
add_custom_target(bundled_openssl)
|
||||
set_target_properties(bundled_openssl PROPERTIES FOLDER ${BUNDLED_TARGETS_FOLDER})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
# Build bundled cURL library
|
||||
|
|
Loading…
Reference in a new issue