UNIX/APPLE

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UNIX/APPLE

Micha Renner
is UNIX on Apple true? I mean the build-in-variables.

.e.g:

IF(UNIX)
        ...
        IF(APPLE)
                ...
        ENDIF(APPLE)
ENDIF(UNIX)

I don't have a Apple-maschine to test it.

Greetings
Micha

       

_______________________________________________
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 | Threaded
Open this post in threaded view
|

Re: UNIX/APPLE

Andreas Pakulat-2
On 07.08.09 09:05:26, Micha Renner wrote:
> is UNIX on Apple true? I mean the build-in-variables.

Yes, MacOS is a Unix derivative, so UNIX is set.

Andreas

--
Your love life will be... interesting.
_______________________________________________
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 | Threaded
Open this post in threaded view
|

Re: UNIX/APPLE

Jason Todd Slack-Moehrle
Micha,

>> is UNIX on Apple true? I mean the build-in-variables.
>
> Yes, MacOS is a Unix derivative, so UNIX is set.

Maybe obvious, but since I am new and learning, you can also do:

IF(UNIX AND NOT APPLE)
        .......
ENDIF(UNIX AND NOT APPLE)

-Jason
_______________________________________________
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