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