[CMake] Does CMake set preprocessor variables automatically?

Convey Christian J NPRI ConveyCJ at Npt.NUWC.Navy.Mil
Tue Jan 29 11:22:42 EST 2008


Sorry - shift key stuck.

WIN#@ should have read, WIN32 

> -----Original Message-----
> From: cmake-bounces+conveycj=npt.nuwc.navy.mil at cmake.org 
> [mailto:cmake-bounces+conveycj=npt.nuwc.navy.mil at cmake.org] 
> On Behalf Of Convey Christian J NPRI
> Sent: Tuesday, January 29, 2008 11:15 AM
> To: cmake at cmake.org
> Subject: [CMake] Does CMake set preprocessor variables automatically?
> 
> Does CMake automatically set preprocessor variables that 
> indicate the operating system?
> 
> I'd like to write some code similar to this:
> 
> #ifdef UNIX
>    ...
> #elif WIN#@
>    ...
> #endif
> 
> But if CMake is already setting some of those preprocessor 
> variables for me, it's not clear what variables it's setting.
> 
> Thanks,
> Christian
> 
> Christian Convey
> Scientist, Naval Undersea Warfare Centers Newport, RI
> 
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
> 


More information about the CMake mailing list