[CMake] Operating system decisions

Tyler Roscoe tyler at cryptio.net
Thu Aug 6 15:01:40 EDT 2009


On Thu, Aug 06, 2009 at 11:58:53AM -0700, ML wrote:
> I am looking at the 2.6 documentation for a property or variable that  
> I can use platform depending. I dont see one, so I am sure that I am  
> looking int the wrong place.
> 
> Something like:
> 
> if (OSX)
> 
> if (Win32)
> 
> if(Linux)

http://www.cmake.org/Wiki/CMake_Useful_Variables/Logging_Useful_Variables

Btw, we're switching to using an extra variable WINDOWS that we define
as having the same value as WIN32. We got a lot of questions from
developers wondering if WIN32 meant just 32-bit Windows. (We have a
different way of determining whether a platform is 32-bit windows or
64-bit windows).

tyler


More information about the CMake mailing list