[CMake] Detecting Mac OS X Version
Benjamin Reed
rangerrick at gmail.com
Wed Oct 31 10:28:04 EDT 2007
On 10/31/07, James Bigler <bigler at cs.utah.edu> wrote:
> # -- Determine the version of OSX
> # -- 8 and less are OSX 10.0 - 10.4
> # -- 9 is 10.5 (LEOPARD)
> IF (APPLE)
> EXEC_PROGRAM(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
you can also parse the output of /usr/bin/sw_vers, which will give you
the OSX version (instead of the darwin version) and the build number.
More information about the CMake
mailing list