From 71f3e15308fc87045db5ff92eee70ef8534de368 Mon Sep 17 00:00:00 2001 From: halx99 Date: Fri, 14 May 2021 12:13:39 +0800 Subject: [PATCH] Improve cmake --- external/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index d3936cddd9..fa53926578 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -200,7 +200,9 @@ if(NOT LINUX) set(CURL_DISABLE_TESTS TRUE CACHE BOOL "Disable curl tests building." 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) + set(CURL_BUILD_SHARED_LIBS TRUE CACHE BOOL "" FORCE) + else() + set(CURL_BUILD_SHARED_LIBS FALSE CACHE BOOL "" FORCE) endif() add_subdirectory(curl) configure_target_outdir(libcurl)