[Bro-Dev] --with-binpac

Jonathan Siwek jsiwek at ncsa.illinois.edu
Thu Jan 20 11:55:15 PST 2011


> This doesn't seem to work on the configure script. I have a separate
> binpac that I want use and it still builds and runs the one in the
> tree.

Try this patch (to bro):

$ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 005c5ae..e048305 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,7 +77,8 @@ FindRequiredPackage(PCAP)
 FindRequiredPackage(OpenSSL)
 FindRequiredPackage(BIND)
 
-if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/aux/binpac/CMakeLists.txt)
+if (NOT BinPAC_ROOT_DIR AND
+    EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/aux/binpac/CMakeLists.txt)
     add_subdirectory(aux/binpac)
 endif ()
 FindRequiredPackage(BinPAC)



More information about the bro-dev mailing list