hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.11k stars 362 forks source link

Fix compilation of tests for out-of-tree-build #151

Closed bwalle closed 4 years ago

bwalle commented 5 years ago

We have to modify the include path, otherwise I get

| libconfig/tests/tests.c:31:10: fatal error: libconfig.h: No such file or directory | 31 | #include | | ^~~~~ | compilation terminated.

Signed-off-by: Bernhard Walle bernhard.walle@ncp-e.com

KevinWMatthews commented 4 years ago

Can confirm for an out-of-tree build with CMake. This is noticeable to new users because the tests build by default.