From ee66ccad1413d7626657f3bef3e7776af0c44cf1 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Tue, 26 Aug 2025 10:07:38 -0700 Subject: [PATCH] Link Prometheus symbols via Broker instead of directly --- FindPrometheusCpp.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FindPrometheusCpp.cmake b/FindPrometheusCpp.cmake index d45a5fb..bef5ad6 100644 --- a/FindPrometheusCpp.cmake +++ b/FindPrometheusCpp.cmake @@ -24,7 +24,11 @@ message("\n==================| prometheus-cpp Config Summary |================ add_subdirectory(auxil/prometheus-cpp EXCLUDE_FROM_ALL) message("=========================================================================\n ") -set(zeekdeps ${zeekdeps} prometheus-cpp::core prometheus-cpp::pull) +# The prometheus symbols are brought by broker, which links the libraries in statically +# before Zeek links. We can skip linking them in ourselves as long as we are linking +# against broker. +#set(zeekdeps ${zeekdeps} prometheus-cpp::core prometheus-cpp::pull) + include_directories(BEFORE ${prometheuscpp_src}/pull/include ${prometheuscpp_src}/core/include) include_directories(BEFORE ${prometheuscpp_build}/pull/include ${prometheuscpp_build}/core/include)