Improve cmake

This commit is contained in:
halx99 2021-05-14 12:13:39 +08:00
parent 798e0fe1a1
commit 71f3e15308
1 changed files with 3 additions and 1 deletions

View File

@ -200,7 +200,9 @@ if(NOT LINUX)
set(CURL_DISABLE_TESTS TRUE CACHE BOOL "Disable curl tests building." 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)
set(CURL_BUILD_SHARED_LIBS TRUE CACHE BOOL "" FORCE)
else()
set(CURL_BUILD_SHARED_LIBS FALSE CACHE BOOL "" FORCE)
endif()
add_subdirectory(curl)
configure_target_outdir(libcurl)