mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Added support for optional libz.
This commit is contained in:
parent
88c77fdc25
commit
d043aba54d
4 changed files with 9 additions and 5 deletions
|
@ -69,5 +69,4 @@ set(BinPAC_SKIP_INSTALL true)
|
|||
|
||||
# TODO: more dependencies:
|
||||
# LibGeoIP
|
||||
# Libz
|
||||
# Google perftools
|
||||
|
|
|
@ -99,8 +99,12 @@ if (LIBMAGIC_FOUND)
|
|||
set(HAVE_LIBMAGIC true)
|
||||
endif ()
|
||||
|
||||
find_package(ZLIB)
|
||||
if (ZLIB_FOUND)
|
||||
set(HAVE_LIBZ true)
|
||||
endif ()
|
||||
|
||||
# TODO: optional libGeoIP
|
||||
# TODO: optional libz
|
||||
# TODO: optional Google perftools
|
||||
|
||||
##
|
||||
|
@ -155,7 +159,7 @@ message(
|
|||
"\nBroccoli: ${use_broccoli}"
|
||||
"\nBroctl: ${use_broctl}"
|
||||
"\nGeoIP: ${use_geoip}"
|
||||
"\nlibz: ${use_libz}"
|
||||
"\nlibz: ${HAVE_LIBZ}"
|
||||
"\nlibmagic: ${HAVE_LIBMAGIC}"
|
||||
"\nGoogle perftools: ${use_perftools}"
|
||||
"\n"
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
/* Define if you have the `magic' library (-lmagic). */
|
||||
#cmakedefine HAVE_LIBMAGIC
|
||||
|
||||
/* Define to 1 if you have the `z' library (-lz). */
|
||||
#undef HAVE_LIBZ
|
||||
/* Define if you have the `z' library (-lz). */
|
||||
#cmakedefine HAVE_LIBZ
|
||||
|
||||
/* We are on a Linux system */
|
||||
#cmakedefine HAVE_LINUX
|
||||
|
|
|
@ -369,6 +369,7 @@ target_link_libraries(bro
|
|||
${OPENSSL_LIBRARIES}
|
||||
${BIND_LIBRARY}
|
||||
${LibMagic_LIBRARY}
|
||||
${ZLIB_LIBRARIES}
|
||||
)
|
||||
|
||||
install(TARGETS bro DESTINATION bin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue