mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
Allow macOS to search for libkrb5, but disallow system version of library
This commit is contained in:
parent
8f60d37ad0
commit
051c191f63
5 changed files with 13 additions and 9 deletions
|
@ -1087,13 +1087,11 @@ if (LIBMMDB_FOUND)
|
|||
endif ()
|
||||
|
||||
set(USE_KRB5 false)
|
||||
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
find_package(LibKrb5)
|
||||
if (LIBKRB5_FOUND)
|
||||
set(USE_KRB5 true)
|
||||
include_directories(BEFORE ${LibKrb5_INCLUDE_DIR})
|
||||
list(APPEND OPTLIBS ${LibKrb5_LIBRARY})
|
||||
endif ()
|
||||
find_package(LibKrb5)
|
||||
if (LIBKRB5_FOUND)
|
||||
set(USE_KRB5 true)
|
||||
include_directories(BEFORE ${LibKrb5_INCLUDE_DIR})
|
||||
list(APPEND OPTLIBS ${LibKrb5_LIBRARY})
|
||||
endif ()
|
||||
|
||||
set(HAVE_PERFTOOLS false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue