mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-07-08 01:30:39 +08:00
Fix BIO_do_connect freeze
This commit is contained in:
@@ -5,6 +5,7 @@ option(ENABLE_STANDALONE "Build utils standalone" OFF)
|
||||
option(ENABLE_CXX17 "Enable C++ 17" OFF)
|
||||
option(INSTALL_DEP_FILES "Install a file with dependences." OFF)
|
||||
option(ENABLE_SSL "Enable SSL" OFF)
|
||||
option(ENABLE_ZLIB "Use Zlib to uncompress http data." OFF)
|
||||
|
||||
if (ENABLE_STANDALONE)
|
||||
project(utils)
|
||||
@@ -29,6 +30,12 @@ if (ENABLE_SSL)
|
||||
set(HAVE_OPENSSL 1)
|
||||
endif()
|
||||
|
||||
if (ENABLE_ZLIB)
|
||||
find_package(ZLIB REQUIRED)
|
||||
set(HAVE_ZLIB 1)
|
||||
endif()
|
||||
|
||||
|
||||
if (Iconv_FOUND)
|
||||
set(HAVE_ICONV 1)
|
||||
endif()
|
||||
@@ -132,6 +139,9 @@ endif()
|
||||
if (ENABLE_SSL)
|
||||
target_link_libraries(utils OpenSSL::SSL OpenSSL::Crypto)
|
||||
endif()
|
||||
if (ENABLE_ZLIB)
|
||||
target_link_libraries(utils ZLIB::ZLIB)
|
||||
endif()
|
||||
if (ENABLE_CXX17)
|
||||
target_compile_features(utils PRIVATE cxx_std_17)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user