Registered Member
|
hi! I am new to kdevelop, I have a CMAKE based project that depends in a external library, that is another CMAKE kdevelop project. I would like to debug my project, stepping into the source code of the external library. there is some way to configure external sources so it may be recognized by GDB?
(I know this question is more about CMAKE rather than kdevelop, but I highly appreciate any help) |
Global Moderator
|
Yes, the external library needs to be built in debug mode. Then everything should just work.
Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
thanks by your quick reply! you were right, the external library was built in release mode. I added SET(CMAKE_BUILD_TYPE Debug) to the CMakeLists.txt of the library project and rebuild it. after that, with the add_subdirectory command in my project, everything goes on!
|
Global Moderator
|
Fine! Note that you don't need to modify the cmake files for such things; you can just run cmake with the -DCMAKE_BUILD_TYPE=debug option.
I'm working on the KDevelop IDE.
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]