diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index d3936cddd9..fa53926578 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -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)