From: Ruben Kerkhof Date: Tue, 30 Dec 2014 22:35:20 +0000 (+0100) Subject: Fix header path during VPATH build X-Git-Tag: rec-3.7.0-rc1~67^2~13^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58f1a72052903a1cb89539ca919c1db791ed28a9;p=pdns Fix header path during VPATH build /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../modules/remotebackend -I../.. -I../.. -I../../.. -pthread -I/usr/include -I../../pdns/ext/rapidjson/include -I../../../pdns/ext/yahttp -I../../../pdns/ext/polarssl/include/ -fPIE -DPIE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -Wall -g -O2 -c -o remotebackend.lo ../../../modules/remotebackend/remotebackend.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../modules/remotebackend -I../.. -I../.. -I../../.. -pthread -I/usr/include -I../../pdns/ext/rapidjson/include -I../../../pdns/ext/yahttp -I../../../pdns/ext/polarssl/include/ -DPIE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -Wall -g -O2 -c ../../../modules/remotebackend/remotebackend.cc -fPIC -DPIC -o .libs/remotebackend.o In file included from ../../../modules/remotebackend/remotebackend.hh:9:0, from ../../../modules/remotebackend/remotebackend.cc:1: ../../../pdns/json.hh:27:32: fatal error: rapidjson/document.h: No such file or directory #include "rapidjson/document.h" ^ compilation terminated. --- diff --git a/modules/remotebackend/Makefile.am b/modules/remotebackend/Makefile.am index 2f2a98529..367178bff 100644 --- a/modules/remotebackend/Makefile.am +++ b/modules/remotebackend/Makefile.am @@ -1,5 +1,5 @@ AM_CPPFLAGS += \ - -I../../pdns/ext/rapidjson/include \ + -I$(top_srcdir)/pdns/ext/rapidjson/include \ $(YAHTTP_CFLAGS) \ $(POLARSSL_CFLAGS) \ $(LIBZMQ_CFLAGS)