[CMake] Differentiating between FreeBSD and Linuxs

2007-05-16 Thread Ajay Divekar
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

Re: [CMake] Differentiating between FreeBSD and Linuxs

2007-05-16 Thread Eric Noulard
2007/5/16, Ajay Divekar [EMAIL PROTECTED]: 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(...)

Re: [CMake] Differentiating between FreeBSD and Linuxs

2007-05-16 Thread Eric Noulard
2007/5/16, Ajay Divekar [EMAIL PROTECTED]: I was trying to use this tag in a script which was called using the install script command. Guess these tags are not available there. You must be right. You may try the attached system.cmake script with cmake -P system.cmake this should work. --