[CMake] Detecting Mac OS X Version

Sean McBride sean at rogue-research.com
Wed Oct 31 13:15:05 EDT 2007


On 10/31/07 9:28 AM, Mike Jackson said:

>Would someone have an example of detecting the specific version of OS  
>X that cmake is running on? I would like add values based on OS X  
>version.
>
>IF (OS_X_VERSION matches "10.5")
>   ......
>ENDIF (OS_X_VERSION matches "10.5")
>
>or something to that effect..

Mike,

I'm curious... in what situation does it matter which version of the OS
is being run?  Wouldn't it be better to check which SDK is being used? 
Or the deployment version?

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



More information about the CMake mailing list