Build the SMB dissector by default, with an option to disable.

This matches what we offer for autotools.
This commit is contained in:
Guy Harris 2018-01-21 18:27:06 -08:00
parent b4a37afc09
commit a06d0ca5c3

View File

@ -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
#