Skip to content

Commit 36738ca

Browse files
sergey-raevskiybagder
authored andcommitted
cmake: add SMB to list of disabled protocols if HTTP_ONLY is specified
Reviewed-by: Jakub Zakrzewski Closes curl#3770
1 parent 81da096 commit 36738ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ option(CURL_DISABLE_SMTP "to disable SMTP" OFF)
160160
mark_as_advanced(CURL_DISABLE_SMTP)
161161
option(CURL_DISABLE_GOPHER "to disable Gopher" OFF)
162162
mark_as_advanced(CURL_DISABLE_GOPHER)
163+
option(CURL_DISABLE_SMB "disables SMB" OFF)
164+
mark_as_advanced(CURL_DISABLE_SMB)
163165

164166
if(HTTP_ONLY)
165167
set(CURL_DISABLE_FTP ON)
@@ -174,6 +176,7 @@ if(HTTP_ONLY)
174176
set(CURL_DISABLE_IMAP ON)
175177
set(CURL_DISABLE_SMTP ON)
176178
set(CURL_DISABLE_GOPHER ON)
179+
set(CURL_DISABLE_SMB ON)
177180
endif()
178181

179182
option(CURL_DISABLE_COOKIES "to disable cookies support" OFF)
@@ -1240,6 +1243,7 @@ _add_if("SCP" USE_LIBSSH2)
12401243
_add_if("SFTP" USE_LIBSSH2)
12411244
_add_if("RTSP" NOT CURL_DISABLE_RTSP)
12421245
_add_if("RTMP" USE_LIBRTMP)
1246+
_add_if("SMB" NOT CURL_DISABLE_SMB)
12431247
if(_items)
12441248
list(SORT _items)
12451249
endif()

0 commit comments

Comments
 (0)