diff options
author | sergey-raevskiy <ccik@inbox.ru> | 2019-04-12 16:28:37 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-06-11 09:28:18 +0200 |
commit | 36738caeb78603ce24e3ea089a167b8c216fb938 (patch) | |
tree | b35f0a184eaf3fec969037465f10b0c28ed361f3 /CMakeLists.txt | |
parent | 81da0965cfc5ded6cc1b6f82c323c0cd155e1300 (diff) | |
download | curl-36738caeb78603ce24e3ea089a167b8c216fb938.tar.gz |
cmake: add SMB to list of disabled protocols if HTTP_ONLY is specified
Reviewed-by: Jakub Zakrzewski
Closes #3770
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 388f790db..5fa5bf0ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() |