Commit b2a103ff authored by Bernhard Walle's avatar Bernhard Walle

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

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 <libconfig.h>
|       |          ^~~~~~~~~~~~~
| compilation terminated.
Signed-off-by: default avatarBernhard Walle <bernhard.walle@ncp-e.com>
parent 221ca9d9
......@@ -4,6 +4,8 @@ else()
set(libname "config")
endif()
include_directories(${CMAKE_SOURCE_DIR}/lib)
add_executable(libconfig_tests
tests.c
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment