summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--backends/prometheus/remote_write/remote_write.cc2
-rw-r--r--configure.ac2
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