Registered Member
|
Hi,
I'm developing in C++ for a STM32 micro-controller using libopencm3. I am using CMake to build the project. I use KDevelop 5.5.0 The project builds fine with CMake. It also is parsed correctly by KDevelop. However when parsed with KDevelop all the make dependencies for the libopencm3 custom target are being put in my $HOME directory. This does not happen with CMake, do you know how I can debug this?
libopencm3 is a git submodule and the provided Makefile is used:
Example project: https://gitlab.com/VictorLamoine/libope ... l_examples Bye |
Global Moderator
|
I can only guess, but my guess is that somewhere, your CMake file depends on the current working directory. If you run CMake from CLI, that is set as you expected (to the build dir, probably), but in KDevelop, it's $HOME (if you start it from the menu, for example).
Pretty sure this has to be fixed in your specific CMake project.
I'm working on the KDevelop IDE.
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell