[CMake] Clearing the ADD_DEFINITIONS

Alexander Neundorf a.neundorf-work at gmx.net
Mon Feb 18 13:17:38 EST 2008


On Monday 18 February 2008, Martin Lütken wrote:
> Is there a way to clear this list ?
> Intrying to convert pango til Cmake I need to change a define inside the
> same source library. So I guess I need to clear this internal list or at
> least remove the define in question before adding it again to avoid
> compiler warnings.
>
> The problem with removing the explicit added define is that it's not a
> general solution and I really would like/need a general solution.
>
> If I could just access the internal list I suppose I could run thru and
> remove all items .

remove_definitions() alone doesn't do what you want right ?

Try get_directory_property(... DEFINITIONS ...)
and see if that works.

Maybe you can post a simple example which shows exactly what you want to do ?

Alex


More information about the CMake mailing list