diff --git a/CMakeLists.txt b/CMakeLists.txt index d60aa7c83..7407dfdd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,11 +99,14 @@ if(NOT EMSCRIPTEN AND NOT ANDROID AND NOT IOS) set(WITH_APPS OFF) # don't build executable add_subdirectory(src/openssl) + set(CURL_USE_LIBSSH2 OFF) + set(CURL_USE_LIBPSL OFF) set(CURL_ENABLE_EXPORT_TARGET OFF) set(BUILD_TESTING OFF) set(BUILD_CURL_EXE OFF) set(BUILD_SHARED_LIBS OFF) set(BUILD_STATIC_LIBS ON) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCURL_STATICLIB") # see "Important static libcurl usage note" in INSTALL.md add_subdirectory(src/curl) endif()