From 140d3b368fb58668d66a7d3e9b65206d35b5d194 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 18 Jul 2024 14:04:59 -0700 Subject: [PATCH] Use vcpkg to build prometheus-cpp dependency --- CMakeLists.txt | 5 ++++- vcpkg.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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"