aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/DefinePlatformDefaults.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-08 11:19:05 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-08 11:20:10 +0200
commit031c06419b1f8cab5a297f57f60794a792108cca (patch)
tree8d08ac4959d33a36cb9cb842f1d5950054295f99 /cmake/Modules/DefinePlatformDefaults.cmake
parent254a08f540052250e67c5ca547f03e52c9f7d776 (diff)
downloadlibssh-031c06419b1f8cab5a297f57f60794a792108cca.tar.gz
libssh-031c06419b1f8cab5a297f57f60794a792108cca.tar.xz
libssh-031c06419b1f8cab5a297f57f60794a792108cca.zip
build: Added DefinePlatformDefaults cmake file.
Diffstat (limited to 'cmake/Modules/DefinePlatformDefaults.cmake')
-rw-r--r--cmake/Modules/DefinePlatformDefaults.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/Modules/DefinePlatformDefaults.cmake b/cmake/Modules/DefinePlatformDefaults.cmake
new file mode 100644
index 00000000..46c3185a
--- /dev/null
+++ b/cmake/Modules/DefinePlatformDefaults.cmake
@@ -0,0 +1,21 @@
+# 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)
+endif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+
+if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
+ set(OPENBSD TRUE)
+endif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
+
+if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
+ set(NETBSD TRUE)
+endif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
+
+if (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
+ set(SOLARIS TRUE)
+endif (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")