From: Guy Harris Date: Mon, 22 Jan 2018 02:27:06 +0000 (-0800) Subject: Build the SMB dissector by default, with an option to disable. X-Git-Tag: tcpdump-4.99-bp~1433 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a06d0ca5c3c25add1db9c78c52409c998c5f45ff?ds=sidebyside Build the SMB dissector by default, with an option to disable. This matches what we offer for autotools. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d92019d8..a2b7c900 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ set(LIBRARY_NAME netdissect) ################################################################### option(WITH_SMI "Build with libsmi, if available" ON) +option(ENABLE_SMB "Build with the SMB dissector" ON) # # By default, build universal with the appropriate set of architectures @@ -570,6 +571,15 @@ set(NETDISSECT_SOURCE_LIST_C util-print.c ) +if(ENABLE_SMB) + # + # We allow the SMB dissector to be omitted. + # + set(NETDISSECT_SOURCE_LIST_C ${NETDISSECT_SOURCE_LIST_C} + print-smb.c + smbutil.c) +endif(ENABLE_SMB) + # # Replace missing functions #