Update cmakelist

This commit is contained in:
halx99 2021-04-28 18:58:11 +08:00
parent 482793036d
commit 3a3c4ed518
1 changed files with 3 additions and 1 deletions

View File

@ -195,8 +195,10 @@ if(NOT LINUX)
if(BUILD_EXT_CURL)
set(BUILD_CURL_EXE FALSE CACHE BOOL "Set to OFF to build curl executable." FORCE)
set(CURL_DISABLE_TESTS TRUE CACHE BOOL "Disable curl tests building." FORCE)
set(CURL_BUILD_SHARED_LIBS TRUE CACHE BOOL "Set to ON to build curl executable." FORCE)
set(CMAKE_USE_OPENSSL TRUE CACHE BOOL "Use openssl for curl" FORCE)
if(WIN32)
set(CURL_BUILD_SHARED_LIBS TRUE CACHE BOOL "Set to ON to build curl executable." FORCE)
endif()
message("######## OPENSSL_CRYPTO_LIBRARY=${OPENSSL_CRYPTO_LIBRARY}")
message("######## OPENSSL_SSL_LIBRARY=${OPENSSL_SSL_LIBRARY}")
add_subdirectory(curl)