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