new cmake macro available (starting monday): MACRO_APPEND_IF()

Alexander Neundorf neundorf at kde.org
Tue Dec 18 23:23:21 GMT 2007


On Wednesday 19 December 2007, Dirk Mueller wrote:
> On Sunday 16 December 2007, Alexander Neundorf wrote:
> > I added a new macro MACRO_APPEND_IF(var condition value1..valueN) to
> > kdelibs.
>
> kde-buildsystem@ ?

I thought it should be more public.

> Anyway, I think explicitely spellig out what it does is more understandable
> than yet another magic macro that you don't know about as a newcomer.

I tried to keep as well the number as well as the level of magic in the macros 
as low as possible.
Which ones do you feel are "magic" (except automoc) ?

> alternatively I'd call it set_if_condition() or something else..

"set" would be wrong, since it doesn't set, it appends.

> macro_append_if sounds strange to me.

Would be:
macro_append_if(SOMETHING_FOUND mySrcs file1.cpp file2.cpp)

Is this really that unobvious what it does ?

Alex




More information about the kde-core-devel mailing list