DefinePlatformDefaults.cmake 879 B

1234567891011121314151617181920212223242526272829303132
  1. # (c) 2014 Copyright ownCloud GmbH
  2. # Redistribution and use is allowed according to the terms of the BSD license.
  3. # For details see the accompanying COPYING* file.
  4. # Set system vars
  5. if (CMAKE_SYSTEM_NAME MATCHES "Linux")
  6. set(LINUX TRUE)
  7. endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
  8. if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
  9. set(FREEBSD TRUE)
  10. set(BSD TRUE)
  11. endif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
  12. if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
  13. set(OPENBSD TRUE)
  14. set(BSD TRUE)
  15. endif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
  16. if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
  17. set(NETBSD TRUE)
  18. set(BSD TRUE)
  19. endif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
  20. if (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
  21. set(SOLARIS TRUE)
  22. endif (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
  23. if (CMAKE_SYSTEM_NAME MATCHES "OS2")
  24. set(OS2 TRUE)
  25. endif (CMAKE_SYSTEM_NAME MATCHES "OS2")