]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: fix CURL_DISABLE_GETOPTIONS
authorLoïc Yhuel <loic.yhuel@softathome.com>
Wed, 11 Oct 2023 11:13:50 +0000 (13:13 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 13 Oct 2023 04:57:09 +0000 (00:57 -0400)
- Add CURL_DISABLE_GETOPTIONS to curl_config.h.cmake.

Prior to this change the option had no effect because it was missing
from that file.

Closes https://github.com/curl/curl/pull/12091

lib/curl_config.h.cmake

index 0bfb45796951ae875aaa698f0be41ffa7a1228db..6df67d081b901aecad26d3c677f09b557d041c71 100644 (file)
@@ -74,6 +74,9 @@
 /* disables FTP */
 #cmakedefine CURL_DISABLE_FTP 1
 
+/* disables curl_easy_options API for existing options to curl_easy_setopt */
+#cmakedefine CURL_DISABLE_GETOPTIONS 1
+
 /* disables GOPHER */
 #cmakedefine CURL_DISABLE_GOPHER 1