Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
run_dev_env: should support CMake Modules and pkg-config #2678
Steps to Reproduce the Problem
cd ~build . ~e/scripts/run_dev_env cd ~e/examples/codegen/econf/pkgconfig make
That it compiles because run_dev_env should use Elektra from the build directory and not the installed Elektra.
The installed Elektra is used:
kdb gen -F ni=../spec.ini elektra spec/sw/example/econf/#0/current genelektra gcc ../src/application.c genelektra.c -std=c99 `pkg-config --cflags --libs elektra-codegen` -I. -o application -Wl,-rpath `pkg-config --variable=libdir elektra-codegen` Package elektra-codegen was not found in the pkg-config search path. Perhaps you should add the directory containing `elektra-codegen.pc' to the PKG_CONFIG_PATH environment variable Package 'elektra-codegen', required by 'world', not found In file included from ../src/application.c:9:0: ./genelektra.h:20:21: fatal error: elektra.h: file not found #include <elektra.h> ^ compilation terminated. In file included from genelektra.c:13:0: genelektra.h:20:21: fatal error: elektra.h: file not found #include <elektra.h> ^ compilation terminated. Makefile:4: „application“ failed make: *** [application] error 1
It might be enough to set PKG_CONFIG_PATH and CMAKE_MODULE_PATH to some folder in the build directory (and maybe also source dir).