diff --git a/CMakeLists.txt b/CMakeLists.txt index 68db39fd25..8359e01a2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -426,10 +426,12 @@ endif() # Some of the external libraries are not used for mobile. if(DESKTOP) # Build curl as a static library - set(CURL_STATICLIB ON CACHE BOOL "") + set(BUILD_SHARED_LIBS OFF) + set(BUILD_CURL_EXE OFF) + set(CURL_STATICLIB ON) if (WIN32) # Enable Windows native SSL/TLS in libcurl. - set(CMAKE_USE_SCHANNEL ON CACHE BOOL "") + set(CMAKE_USE_SCHANNEL ON) endif() # Current Curl library defaults to requiring some dependencies we don't need, disable them.