diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-03-16 21:09:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 21:09:40 +0200 |
commit | 7901ae9b05de2b827b6fa069dddb23d59686c86b (patch) | |
tree | e961e9450a8751d0908708d66baab1f7716f5ac0 | |
parent | 161ba1592f5412bd378ace104979ddb66cd33973 (diff) |
Fix Prometheus Remote Write build (#8411)
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | backends/prometheus/remote_write/remote_write.cc | 2 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ca25bd5cc2..6b23032620 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1059,6 +1059,7 @@ endif() PRIVATE -DUNIT_TESTING ) + target_include_directories(${TEST_NAME}_testdriver PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) target_link_options( ${TEST_NAME}_testdriver PRIVATE diff --git a/backends/prometheus/remote_write/remote_write.cc b/backends/prometheus/remote_write/remote_write.cc index d74e7d8be9..9448595c1b 100644 --- a/backends/prometheus/remote_write/remote_write.cc +++ b/backends/prometheus/remote_write/remote_write.cc @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later #include <snappy.h> -#include "../../../exporting/prometheus/remote_write/remote_write.pb.h" +#include "remote_write.pb.h" #include "remote_write.h" using namespace prometheus; diff --git a/configure.ac b/configure.ac index 3a3dd82999..ef786d2ed1 100644 --- a/configure.ac +++ b/configure.ac @@ -1088,7 +1088,7 @@ if test "${enable_backend_prometheus_remote_write}" != "no" -a "${have_libprotob -a "${have_protoc}" = "yes" -a "${have_CXX_compiler}" = "yes"; then enable_backend_prometheus_remote_write="yes" AC_DEFINE([ENABLE_PROMETHEUS_REMOTE_WRITE], [1], [Prometheus remote write API usability]) - OPTIONAL_PROMETHEUS_REMOTE_WRITE_CFLAGS="${PROTOBUF_CFLAGS} ${SNAPPY_CFLAGS}" + OPTIONAL_PROMETHEUS_REMOTE_WRITE_CFLAGS="${PROTOBUF_CFLAGS} ${SNAPPY_CFLAGS} -Iexporting/prometheus/remote_write" CXX11FLAG="-std=c++11" OPTIONAL_PROMETHEUS_REMOTE_WRITE_LIBS="${PROTOBUF_LIBS} ${SNAPPY_LIBS}" else |