Skip to content

Commit 84fc4f7

Browse files
committed
Explicitly set curl to build statically
1 parent 25222c2 commit 84fc4f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ endif()
426426
# Some of the external libraries are not used for mobile.
427427
if(DESKTOP)
428428
# Build curl as a static library
429+
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries")
430+
set(BUILD_CURL_EXE OFF CACHE BOOL "Disable curl executable")
429431
set(CURL_STATICLIB ON CACHE BOOL "")
430432
if (WIN32)
431433
# Enable Windows native SSL/TLS in libcurl.

0 commit comments

Comments
 (0)