Bug in cmake's "remove_definitions"

Brad King brad.king at kitware.com
Tue May 23 18:52:15 CEST 2006


Dmitry Suzdalev wrote:
> I believe, I've found bug in cmake.
> 
> KDE4_DEFINITIONS in FindKDE4Internal.cmake among the others contains flags 
> "-DQT3_SUPPORT" and "-DQT3_SUPPORT_WARNINGS".
> 
> When I added
> 
> remove_definitions(-DQT3_SUPPORT)
> 
> I got a compile time error:
> 
> c++: _WARNINGS: No such file or directory
> 
> You see? "-DQ3_SUPPORT" was cutted from "-DQT3_SUPPORT_WARNINGS" macro 
> effectively leaving _WARNINGS on command line to produce an error :).

I've fixed it in CMake.  This will be included in 2.4.3.

-Brad


More information about the Kde-buildsystem mailing list