From c1a7376deff159d54b51ad2a188581f92b356061 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 17 Jul 2024 17:24:19 -0700 Subject: [PATCH] Have cmake use find_package for c-ares instead of FindCAres.cmake --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bd3aff64f..814bac537a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1134,7 +1134,10 @@ include(GetArchitecture) # value for HAVE_KQUEUE that was set during the libkqueue setup. We don't # pass the libkqueue information down to the c-ares cmake run so it won't # have the paths or library when it builds. -include(FindCAres) +find_package(c-ares CONFIG REQUIRED) +include_directories(BEFORE ${c-ares_INCLUDE_DIR}) +set(zeekdeps ${zeekdeps} c-ares::cares) + include(FindKqueue) include(FindPrometheusCpp)