summary refs log tree commit diff
path: root/cmake
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-31 21:11:10 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-31 21:11:10 +0100
commit1392cf056caf3d26d464d5a6fd82df69eaec941a (patch)
treead97ded7bf795ea5e7647d57159138d64d3337b7 /cmake
parentUpdate nlohmann/json in flatpak (diff)
downloadnheko-1392cf056caf3d26d464d5a6fd82df69eaec941a.tar.xz
Fix schannel support on Windows
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Hunter/config.cmake42
1 files changed, 36 insertions, 6 deletions
diff --git a/cmake/Hunter/config.cmake b/cmake/Hunter/config.cmake
index d735a69d..3d5dd00f 100644
--- a/cmake/Hunter/config.cmake
+++ b/cmake/Hunter/config.cmake
@@ -9,11 +9,26 @@ if (WIN32)
         CURL
         VERSION 8.4.0-p0
         CMAKE_ARGS
-            CMAKE_USE_SCHANNEL=ON
             BUILD_CURL_TESTS=OFF
             BUILD_CURL_EXE=OFF
-            CMAKE_USE_OPENSSL=OFF
-            CMAKE_USE_LIBSSH2=OFF
+            CURL_USE_SCHANNEL=ON
+            CURL_USE_OPENSSL=OFF
+            CURL_USE_LIBSSH2=OFF
+            CURL_DISABLE_FTP=ON
+            CURL_DISABLE_FTP=ON
+            CURL_DISABLE_FILE=ON
+            CURL_DISABLE_TELNET=ON
+            CURL_DISABLE_LDAP=ON
+            CURL_DISABLE_DICT=ON
+            CURL_DISABLE_TFTP=ON
+            CURL_DISABLE_GOPHER=ON
+            CURL_DISABLE_POP3=ON
+            CURL_DISABLE_IMAP=ON
+            CURL_DISABLE_SMB=ON
+            CURL_DISABLE_SMTP=ON
+            CURL_DISABLE_RTSP=ON
+            CURL_USE_LIBRTMP=OFF
+            CURL_DISABLE_MQTT=ON
             BUILD_TESTING=OFF
     )
 else()
@@ -21,11 +36,26 @@ else()
         CURL
         VERSION 8.4.0-p0
         CMAKE_ARGS
-            CMAKE_USE_SCHANNEL=OFF
             BUILD_CURL_TESTS=OFF
             BUILD_CURL_EXE=OFF
-            CMAKE_USE_OPENSSL=ON
-            CMAKE_USE_LIBSSH2=OFF
+            CURL_USE_SCHANNEL=OFF
+            CURL_USE_OPENSSL=ON
+            CURL_USE_LIBSSH2=OFF
+            CURL_DISABLE_FTP=ON
+            CURL_DISABLE_FTP=ON
+            CURL_DISABLE_FILE=ON
+            CURL_DISABLE_TELNET=ON
+            CURL_DISABLE_LDAP=ON
+            CURL_DISABLE_DICT=ON
+            CURL_DISABLE_TFTP=ON
+            CURL_DISABLE_GOPHER=ON
+            CURL_DISABLE_POP3=ON
+            CURL_DISABLE_IMAP=ON
+            CURL_DISABLE_SMB=ON
+            CURL_DISABLE_SMTP=ON
+            CURL_DISABLE_RTSP=ON
+            CURL_USE_LIBRTMP=OFF
+            CURL_DISABLE_MQTT=ON
             BUILD_TESTING=OFF
     )
 endif()