From 84fc4f7d8da47785dd5fceb1ecd804f47f2b162a Mon Sep 17 00:00:00 2001 From: a-maurice Date: Mon, 10 Aug 2026 15:54:54 -0700 Subject: [PATCH 1/2] Explicitly set curl to build statically --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68db39fd25..7e0de8ead2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -426,6 +426,8 @@ endif() # Some of the external libraries are not used for mobile. if(DESKTOP) # Build curl as a static library + set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries") + set(BUILD_CURL_EXE OFF CACHE BOOL "Disable curl executable") set(CURL_STATICLIB ON CACHE BOOL "") if (WIN32) # Enable Windows native SSL/TLS in libcurl. From 186011c84dca62f06d4b15f845294c5df475a5f9 Mon Sep 17 00:00:00 2001 From: a-maurice Date: Mon, 10 Aug 2026 16:05:20 -0700 Subject: [PATCH 2/2] Update CMakeLists.txt --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e0de8ead2..8359e01a2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -426,12 +426,12 @@ endif() # Some of the external libraries are not used for mobile. if(DESKTOP) # Build curl as a static library - set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries") - set(BUILD_CURL_EXE OFF CACHE BOOL "Disable curl executable") - 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.