zeek/src/ZeekConfig.cmake.in
Tim Wojtulewicz c9f4bacd73 Revert "Merge remote-tracking branch 'origin/topic/neverlord/gh-3247'"
This reverts commit 1673f1db05, reversing
changes made to 619113f674.
2023-08-29 12:13:40 -07:00

40 lines
1.3 KiB
CMake

@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
# Note: ZeekPluginConfig only exists on the build interface to pull in
# additional variables and dependencies for building dynamic plugins.
if ( EXISTS "${CMAKE_CURRENT_LIST_DIR}/ZeekPluginConfig.cmake" )
include("${CMAKE_CURRENT_LIST_DIR}/ZeekPluginConfig.cmake")
endif ()
set(CMAKE_THREAD_PREFER_PTHREAD ON)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_dependency(Threads REQUIRED)
# Find OpenSSL and Forward hints from Zeek's build config.
set(ZeekOpenSSLHint "@ZeekOpenSSLHint@")
if (ZeekOpenSSLHint AND NOT OPENSSL_ROOT_DIR)
set(OPENSSL_ROOT_DIR "${ZeekOpenSSLHint}" CACHE
PATH "Directory hint for finding OpenSSL" FORCE)
endif ()
find_dependency(OpenSSL REQUIRED)
# In our MSVC build, we have these extra dependencies from Conan.
if ( MSVC )
find_dependency(libpcap)
find_dependency(ZLIB)
find_dependency(c-ares)
endif ()
if ( NOT "@ZEEK_HAS_STATIC_BROKER@" )
# Always force using the package config file since users might still have
# a legacy FindBroker.cmake in their system.
find_dependency(Broker REQUIRED CONFIG)
endif ()
foreach ( dep @ZEEK_INSTALL_DEPENDENCIES@ )
find_dependency(${dep} REQUIRED)
endforeach ( )
include("${CMAKE_CURRENT_LIST_DIR}/ZeekTargets.cmake")