[CMake] Differentiate between Linux and FreeBSD

Horacio Sanson hsanson at gmail.com
Mon Apr 21 05:51:46 EDT 2008


I can use IF(WIN32) and IF(UNIX) to set some variables depending if
cmake is executed in Windows or UNIX systems. The problem is that UNIX
in this context includes both Linux and FreeBSD.

Has CMake a way to know if it is running in a Linux box or a FreeBSD box??

regards,
Horacio


More information about the CMake mailing list