How to add defines for a specific compiler

William A. Hoffman billlist at
Wed Feb 15 14:18:19 CET 2006

At 08:07 AM 2/15/2006, you wrote:
>Christian Ehrlicher wrote:
>> Hi,
>> How can I add those two defines for msvc (2005)?
>> Christian
>adding the defines in a special cmake file is done by
>if (MSVC)
>endif (MSVC)
>But it seems to me we could add this defines generally in
>cmake/modules/FindKDE4.cmake line 208.

For that particular flag, only the 2005 compiler needs it:

We use this in CMake:



More information about the Kde-buildsystem mailing list