]> granicus.if.org Git - curl/commitdiff
cmake: add SMB to list of disabled protocols if HTTP_ONLY is specified
authorsergey-raevskiy <ccik@inbox.ru>
Fri, 12 Apr 2019 13:28:37 +0000 (16:28 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Jun 2019 07:28:18 +0000 (09:28 +0200)
Reviewed-by: Jakub Zakrzewski
Closes #3770

CMakeLists.txt

index 388f790dbb3dbe3ba86e37ddfe756084f81985ff..5fa5bf0ff4aed019c50e501d484a6294b39f8c9d 100644 (file)
@@ -160,6 +160,8 @@ option(CURL_DISABLE_SMTP "to disable SMTP" OFF)
 mark_as_advanced(CURL_DISABLE_SMTP)
 option(CURL_DISABLE_GOPHER "to disable Gopher" OFF)
 mark_as_advanced(CURL_DISABLE_GOPHER)
+option(CURL_DISABLE_SMB "disables SMB" OFF)
+mark_as_advanced(CURL_DISABLE_SMB)
 
 if(HTTP_ONLY)
   set(CURL_DISABLE_FTP ON)
@@ -174,6 +176,7 @@ if(HTTP_ONLY)
   set(CURL_DISABLE_IMAP ON)
   set(CURL_DISABLE_SMTP ON)
   set(CURL_DISABLE_GOPHER ON)
+  set(CURL_DISABLE_SMB ON)
 endif()
 
 option(CURL_DISABLE_COOKIES "to disable cookies support" OFF)
@@ -1240,6 +1243,7 @@ _add_if("SCP"           USE_LIBSSH2)
 _add_if("SFTP"          USE_LIBSSH2)
 _add_if("RTSP"          NOT CURL_DISABLE_RTSP)
 _add_if("RTMP"          USE_LIBRTMP)
+_add_if("SMB"           NOT CURL_DISABLE_SMB)
 if(_items)
   list(SORT _items)
 endif()