]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Build the SMB dissector by default, with an option to disable.
authorGuy Harris <[email protected]>
Mon, 22 Jan 2018 02:27:06 +0000 (18:27 -0800)
committerGuy Harris <[email protected]>
Mon, 22 Jan 2018 02:27:06 +0000 (18:27 -0800)
This matches what we offer for autotools.

CMakeLists.txt

index d92019d843edef41fbf6430f35dbc3b06599ef47..a2b7c900fd38842a945ab53fecde9a71ae75911b 100644 (file)
@@ -10,6 +10,7 @@ set(LIBRARY_NAME netdissect)
 ###################################################################
 
 option(WITH_SMI "Build with libsmi, if available" ON)
 ###################################################################
 
 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
 
 #
 # By default, build universal with the appropriate set of architectures
@@ -570,6 +571,15 @@ set(NETDISSECT_SOURCE_LIST_C
     util-print.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
 #
 #
 # Replace missing functions
 #