summaryrefslogtreecommitdiffstats
path: root/debian/patches/build-on-kfreebsd
blob: 9000042f8fbbeef1df4f56d19c7362893e869f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Non-Linux architectures on Debian support to be considered as Linux in the Colobot case
Author: Didier Raboud <odyx@debian.org>
Last-Update: 2013-11-26
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,8 +48,8 @@
 
     # Platform-dependent implementation of system.h
     set(SYSTEM_CPP_MODULE "system_windows.cpp")
-elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
-    message(STATUS "Build for Linux system")
+elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" OR "${CMAKE_SYSTEM_NAME}" MATCHES "kFreeBSD" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "GNU")
+    message(STATUS "Build for GNU/Linux, GNU/kFreeBSD or GNU/Hurd system")
     set(PLATFORM_WINDOWS 0)
     set(PLATFORM_LINUX   1)
     set(PLATFORM_MACOSX  0)