How to add defines for a specific compiler

Peter Kümmel syntheticpp at gmx.net
Wed Feb 15 14:07:04 CET 2006


Christian Ehrlicher wrote:
> Hi,
> 
> How can I add those two defines for msvc (2005)?
> -D_CRT_SECURE_NO_DEPRECATE & -D_CRT_NONSTDC_NO_DEPRECATE
> 
> Christian
> 

adding the defines in a special cmake file is done by

if (MSVC)
   add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
endif (MSVC)

But it seems to me we could add this defines generally in
cmake/modules/FindKDE4.cmake line 208.

Peter


More information about the Kde-buildsystem mailing list