Hi,

On Sat, Sep 15, 2012 at 12:46 PM, Loaden <[email protected]> wrote:
> 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.

I think that mostly refers to MacOS 9 and older which are also apple
systems. So doing a if(UNIX && APPLE) should put you on the safe side
since MacOS 9 and older are not unix systems.

Andreas
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to