Out-of-tree builds fail with missing nestegg/nestegg-stdint.h
Closed this issue · 2 comments
bvibber commented
When trying to build outside the source tree, nestegg/nestegg-stdint.h can't be found and compilation fails:
In file included from ../nestegg/src/nestegg.c:12:
../nestegg/include/nestegg/nestegg.h:11:10: fatal error: 'nestegg/nestegg-stdint.h' file not found
#include <nestegg/nestegg-stdint.h>
Steps to reproduce:
- git clone https://github.com/kinetiknz/nestegg.git
- (cd nestegg && autoreconf --install)
- (mkdir build && cd build && ../nestegg/configure)
- (cd build && make)
bvibber commented
Looks like adding -I$(top_builddir)/include to the CPPFLAGS works the necessary magic.