]> granicus.if.org Git - curl/commitdiff
cmake: Add missing feature macros in config header
authorDouglas Creager <dcreager@google.com>
Tue, 10 Nov 2015 19:46:49 +0000 (14:46 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Nov 2015 21:38:52 +0000 (22:38 +0100)
The curl_config.h file can be generated either from curl_config.h.cmake
or curl_config.h.in, depending on whether you're building using CMake or
the autotools.  The CMake template header doesn't include entries for
all of the protocols that you can disable, which (I think) means that
you can't actually disable those protocols when building via CMake.

Closes #523

lib/curl_config.h.cmake

index 1c9f47365412176219f5a2802c90c83f0bf231e8..203ade6871cb513bf795727965e9abbbf0540fff 100644 (file)
 /* to disable FTP */
 #cmakedefine CURL_DISABLE_FTP 1
 
+/* to disable GOPHER */
+#cmakedefine CURL_DISABLE_GOPHER 1
+
+/* to disable IMAP */
+#cmakedefine CURL_DISABLE_IMAP 1
+
 /* to disable HTTP */
 #cmakedefine CURL_DISABLE_HTTP 1
 
 /* to disable LDAPS */
 #cmakedefine CURL_DISABLE_LDAPS 1
 
+/* to disable POP3 */
+#cmakedefine CURL_DISABLE_POP3 1
+
 /* to disable proxies */
 #cmakedefine CURL_DISABLE_PROXY 1
 
+/* to disable SMTP */
+#cmakedefine CURL_DISABLE_SMTP 1
+
 /* to disable TELNET */
 #cmakedefine CURL_DISABLE_TELNET 1