diff --git a/CMakeLists.txt b/CMakeLists.txt index 814bac537a..1e581331f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1140,7 +1140,10 @@ set(zeekdeps ${zeekdeps} c-ares::cares) include(FindKqueue) -include(FindPrometheusCpp) +find_package(prometheus-cpp CONFIG REQUIRED) +set(zeekdeps ${zeekdeps} prometheus-cpp::core prometheus-cpp::pull) +include_directories(BEFORE ${prometheus-cpp_INCLUDE_DIR}) + include_directories(BEFORE "auxil/out_ptr/include") if ((OPENSSL_VERSION VERSION_EQUAL "1.1.0") OR (OPENSSL_VERSION VERSION_GREATER "1.1.0")) diff --git a/vcpkg.json b/vcpkg.json index ec2a4d8a46..592e1afaff 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -3,6 +3,7 @@ "version-string": "latest", "dependencies": [ "c-ares", + "prometheus-cpp", { "name": "zlib", "platform": "windows"