summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineSystem.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-05 14:26:50 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-05 14:26:50 (GMT)
commit451d68b7e3a2fab3db211e77832e9a2d3a76cdb2 (patch)
tree87946991cccaa2b4f55c1b29703b2df70391de94 /Modules/CMakeDetermineSystem.cmake
parent4e1d610224211386c01f27ab4f71d22046c44e4c (diff)
downloadCMake-451d68b7e3a2fab3db211e77832e9a2d3a76cdb2.zip
CMake-451d68b7e3a2fab3db211e77832e9a2d3a76cdb2.tar.gz
CMake-451d68b7e3a2fab3db211e77832e9a2d3a76cdb2.tar.bz2
Support GNU/kFreeBSD
GNU/kFreeBSD = FreeBSD kernel + userspace with glibc. Linux.cmake doesn't contain anything too OS specific, so we can forward to it. Here are outputs of /bin/uname on author's machine: uname -p ==> i386 uname -o ==> GNU/kFreeBSD uname -s ==> GNU/kFreeBSD uname -r ==> 5.4-1-686 Patch from Modestas Vainius. See issue #9659.
Diffstat (limited to 'Modules/CMakeDetermineSystem.cmake')
-rw-r--r--Modules/CMakeDetermineSystem.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
index 68a9480..623caf9 100644
--- a/Modules/CMakeDetermineSystem.cmake
+++ b/Modules/CMakeDetermineSystem.cmake
@@ -25,6 +25,7 @@
# HP-UX HP-UX
# IRIX IRIX
# Linux Linux
+# GNU/kFreeBSD GNU/kFreeBSD
# NetBSD NetBSD
# OpenBSD OpenBSD
# OFS/1 (Digital Unix) OSF1
@@ -121,6 +122,11 @@ MACRO(ADJUST_CMAKE_SYSTEM_VARIABLES _PREFIX)
SET(${_PREFIX}_NAME BSDOS)
ENDIF(${_PREFIX}_NAME MATCHES BSD.OS)
+ # fix for GNU/kFreeBSD, remove the GNU/
+ IF(${_PREFIX}_NAME MATCHES kFreeBSD)
+ SET(${_PREFIX}_NAME kFreeBSD)
+ ENDIF(${_PREFIX}_NAME MATCHES kFreeBSD)
+
# fix for CYGWIN which has windows version in it
IF(${_PREFIX}_NAME MATCHES CYGWIN)
SET(${_PREFIX}_NAME CYGWIN)