From 7739aaf78099e128aabb789a6a70cba8c0764668 Mon Sep 17 00:00:00 2001 From: Daniel Thayer Date: Thu, 23 Aug 2018 15:55:09 -0500 Subject: [PATCH] Fix finding of kerberos and libmaxminddb in CMakeLists.txt On an older system (CentOS 7), there was a bug where although the headers and libraries for kerberos and maxminddb were found correctly, both of those components were listed as "false" in the "Bro Build Summary" output from cmake. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bcafffbae2..80e3d5049a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,7 +134,7 @@ include_directories(BEFORE set(USE_GEOIP false) find_package(LibMMDB) -if (LibMMDB_FOUND) +if (LIBMMDB_FOUND) set(USE_GEOIP true) include_directories(BEFORE ${LibMMDB_INCLUDE_DIR}) list(APPEND OPTLIBS ${LibMMDB_LIBRARY}) @@ -143,7 +143,7 @@ endif () set(USE_KRB5 false) if ( ${CMAKE_SYSTEM_NAME} MATCHES Linux ) find_package(LibKrb5) - if (LibKrb5_FOUND) + if (LIBKRB5_FOUND) set(USE_KRB5 true) list(APPEND OPTLIBS ${LibKrb5_LIBRARY}) endif ()