mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
Build the SMB dissector by default, with an option to disable.
This matches what we offer for autotools.
This commit is contained in:
parent
b4a37afc09
commit
a06d0ca5c3
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user