[CMake] Differentiating between FreeBSD and Linuxs
Ajay Divekar
ajay.divekar at guardiantechintl.com
Wed May 16 12:52:54 EDT 2007
I was trying to differentiate between FreeBSD and Linux's and found that by
using CMAKE_SYSTEM_NAME variable I will be able to do that. I had
if (CMAKE_SYSTEM_NAME MATCHES Linux)
SET(...)
ELSE(CMAKE_SYSTEM_NAME MATCHES Linux)
SET(...)
ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux)
This works on freeBSD but fails on Fedora and SUSE. Any Solution ?
Regards,
Ajay
More information about the CMake
mailing list