KDevelop does not handle add_definitions in cmake files

BogDan Vatra taipanromania at gmail.com
Wed Oct 28 18:33:29 UTC 2009

    I tried to test if I put my defines (I hard coded them "
insertMacro( macros, rpp::pp_macro("DEF_LIB1") ); ")  in
setupStandardMacros but it seems the cpp support ignore them when I
open lib1.cpp , If I open kt.h the parser recognize "DEF_LIB1" define.

2009/10/26, David Nolden <zwabel at googlemail.com>:
> Am Montag 26 Oktober 2009 21:59:44 schrieb BogDan Vatra:
>>   I manage to test kdevelop/projectmanager/cmake/cmakemanager.cpp it
>> seems it works very well (for my test), but I can't find where
>> defines() method is used in  kdevelop/languages/cpp  :(
>> 2009/10/24, Andreas Pakulat <apaku at gmx.de>:
>> > Actually both the CMake support and the C++ support do use the
>> > definitions from the cmake file (according to the code which I looked on
>> > a few weeks ago).
> I think the cpp support doesn't use them. I guess those defines would need
> to
> be handled somewhere in cppparsejob.cpp in a similar fashion to the include
> paths, which means:
> In the foreground, ask the project-manager for the #defines, reach it back
> into the background thread using that thread-safe interface which is also
> used
> for include paths, and then somehow reach the whole thing to the
> preprocessor.
> The macros have to be put into the ParsingEnvironment which is returned by
> "standardEnvironment()" or similar.
> I haven't looked at the actual code, I'm just giving pointers to the correct
> direction out of my memory.
> Greetings, David
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel

More information about the KDevelop-devel mailing list