浏览代码

curl: Set build options the way we need for CMake

Set options added by the update to curl 8.4.0.
Brad King 2 年之前
父节点
当前提交
8a9fa27a35
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Utilities/cmcurl/CMakeLists.txt

+ 3 - 0
Utilities/cmcurl/CMakeLists.txt

@@ -54,6 +54,7 @@ set(CURL_DISABLE_SHUFFLE_DNS OFF)
 set(CURL_DISABLE_SMB OFF)
 set(CURL_DISABLE_SMTP ON CACHE INTERNAL "Disable curl smtp protocol?")
 set(CURL_DISABLE_SOCKETPAIR OFF)
+set(CURL_DISABLE_SRP OFF)
 set(CURL_DISABLE_TELNET ON CACHE INTERNAL "Disable curl telnet protocol?")
 set(CURL_DISABLE_TFTP ON CACHE INTERNAL "Disable curl tftp protocol?")
 set(CURL_DISABLE_VERBOSE_STRINGS OFF CACHE INTERNAL "Do not disable curl verbosity")
@@ -1453,6 +1454,7 @@ if(WIN32)
   unset(HAVE_WIN32_WINNT CACHE)
 endif()
 
+if(0) # This code not needed for building within CMake.
 if(NOT WIN32 AND NOT CMAKE_CROSSCOMPILING)
   # on not-Windows and not-crosscompiling, check for writable argv[]
   include(CheckCSourceRuns)
@@ -1464,6 +1466,7 @@ if(NOT WIN32 AND NOT CMAKE_CROSSCOMPILING)
       return (argv[0][0] == ' ')?0:1;
     }" HAVE_WRITABLE_ARGV)
 endif()
+endif()
 
 set(CMAKE_REQUIRED_FLAGS)