2010-09-08 13:19:05 +04:00
|
|
|
# Set system vars
|
|
|
|
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
set(LINUX TRUE)
|
|
|
|
endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
|
|
set(FREEBSD TRUE)
|
2011-01-24 17:44:11 +03:00
|
|
|
set(BSD TRUE)
|
2010-09-08 13:19:05 +04:00
|
|
|
endif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
|
|
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
|
|
|
set(OPENBSD TRUE)
|
2011-01-24 17:44:11 +03:00
|
|
|
set(BSD TRUE)
|
2010-09-08 13:19:05 +04:00
|
|
|
endif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
|
|
|
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
|
|
|
set(NETBSD TRUE)
|
2011-01-24 17:44:11 +03:00
|
|
|
set(BSD TRUE)
|
2010-09-08 13:19:05 +04:00
|
|
|
endif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
|
|
|
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
|
|
|
|
set(SOLARIS TRUE)
|
|
|
|
endif (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
|
2010-12-31 16:08:20 +03:00
|
|
|
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "OS2")
|
|
|
|
set(OS2 TRUE)
|
|
|
|
endif (CMAKE_SYSTEM_NAME MATCHES "OS2")
|
2013-11-03 16:45:15 +04:00
|
|
|
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|
|
|
set (OSX TRUE)
|
|
|
|
endif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|