summaryrefslogtreecommitdiff
path: root/Modules/Platform/kFreeBSD.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2022-08-18 12:42:51 +0200
committerCraig Scott <craig.scott@crascit.com>2022-08-21 09:27:35 +1000
commit2ae42d0aa38ead2935d545f7d398ddf5df8b396d (patch)
tree6e57c7e65f9b51dd51e0ecc72716b7092d05e6c9 /Modules/Platform/kFreeBSD.cmake
parent4befac3b328a35e7a1eb34ce229f13710fa651a2 (diff)
downloadcmake-2ae42d0aa38ead2935d545f7d398ddf5df8b396d.tar.gz
kFreeBSD: Do not unset LINUX variable
kFreeBSD is a Debian GNU distribution with a kernel from FreeBSD, and should be marked as LINUX.
Diffstat (limited to 'Modules/Platform/kFreeBSD.cmake')
-rw-r--r--Modules/Platform/kFreeBSD.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/kFreeBSD.cmake b/Modules/Platform/kFreeBSD.cmake
index 01ddfd39e0..09c240dc53 100644
--- a/Modules/Platform/kFreeBSD.cmake
+++ b/Modules/Platform/kFreeBSD.cmake
@@ -1,5 +1,5 @@
-# kFreeBSD looks just like Linux.
+# kFreeBSD is a Debian GNU distribution with a kernel from FreeBSD,
+# and should be marked as LINUX
include(Platform/Linux)
-unset(LINUX)
set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-kfreebsd-gnu[a-z0-9_]*")