[CMake] How to check the operating system is MacOSX?

Loaden loaden at gmail.com
Sat Sep 15 06:46:06 EDT 2012


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

UNIX  is TRUE on all UNIX-like OS's, including Apple OS X and *CygWin*
> WIN32  is TRUE on Windows, including *CygWin* APPLE  is TRUE on Apple
> systems. Note this does *not* imply the system is Mac OS X, only that
> __APPLE__ is #defined in C/C++ header files. Obtain more specific system
> information via CMAKE_SYSTEM_VERSION, i.e. IF(${CMAKE_SYSTEM_NAME} MATCHES
> "Darwin"), then it's Mac OS X.


2012/9/15 Alexander Neundorf <a.neundorf-work at gmx.net>

> Why do you think it is not enough ?




-- 
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120915/56950cea/attachment-0001.htm>


More information about the CMake mailing list