Have cmake use find_package for c-ares instead of FindCAres.cmake

This commit is contained in:
Tim Wojtulewicz 2024-07-17 17:24:19 -07:00
parent 79a5d0d4c2
commit c1a7376def

View file

@ -1134,7 +1134,10 @@ include(GetArchitecture)
# value for HAVE_KQUEUE that was set during the libkqueue setup. We don't # 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 # pass the libkqueue information down to the c-ares cmake run so it won't
# have the paths or library when it builds. # 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(FindKqueue)
include(FindPrometheusCpp) include(FindPrometheusCpp)