@cryptotaxi247 / netdata-1 / commits / 7901ae9b0

Fix Prometheus Remote Write build (#8411)

Vladimir Kobal committed Mar 16, 2020 at 21:09 UTC 7901ae9b05de2b827b6fa069dddb23d59686c86b
3 files changed +3 -2
CMakeLists.txt
+1
@@ -1059,6 +1059,7 @@ endif()
1059 PRIVATE
1060 -DUNIT_TESTING
1061 )
1062 + target_include_directories(${TEST_NAME}_testdriver PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
1063 target_link_options(
1064 ${TEST_NAME}_testdriver
1065 PRIVATE
backends/prometheus/remote_write/remote_write.cc
+1 -1
@@ -1,7 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include <snappy.h>
4 -#include "../../../exporting/prometheus/remote_write/remote_write.pb.h"
4 +#include "remote_write.pb.h"
5 #include "remote_write.h"
6
7 using namespace prometheus;
configure.ac
+1 -1
@@ -1088,7 +1088,7 @@ if test "${enable_backend_prometheus_remote_write}" != "no" -a "${have_libprotob
1088 -a "${have_protoc}" = "yes" -a "${have_CXX_compiler}" = "yes"; then
1089 enable_backend_prometheus_remote_write="yes"
1090 AC_DEFINE([ENABLE_PROMETHEUS_REMOTE_WRITE], [1], [Prometheus remote write API usability])
1091 - OPTIONAL_PROMETHEUS_REMOTE_WRITE_CFLAGS="${PROTOBUF_CFLAGS} ${SNAPPY_CFLAGS}"
1091 + OPTIONAL_PROMETHEUS_REMOTE_WRITE_CFLAGS="${PROTOBUF_CFLAGS} ${SNAPPY_CFLAGS} -Iexporting/prometheus/remote_write"
1092 CXX11FLAG="-std=c++11"
1093 OPTIONAL_PROMETHEUS_REMOTE_WRITE_LIBS="${PROTOBUF_LIBS} ${SNAPPY_LIBS}"
1094 else