aboutsummaryrefslogtreecommitdiffstats
path: root/games/colobot/files/patch-CMakeLists.txt
blob: 900f19ab98f3974bfcd28f1c09b5f9f54774411a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- CMakeLists.txt.orig	2024-12-23 20:22:56 UTC
+++ CMakeLists.txt
@@ -121,8 +121,8 @@ elseif("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD")
 
     # Platform-dependent implementation of system.h
     # On FreeBSD we can use *_other
-    set(SYSTEM_CPP_MODULE "system_other.cpp")
-    set(SYSTEM_H_MODULE "system_other.h")
+    set(SYSTEM_CPP_MODULE "system_linux.cpp")
+    set(SYSTEM_H_MODULE "system_linux.h")
     # To avoid CMake warning
     set(CMAKE_MACOSX_RPATH 1)
 else()
@@ -176,9 +176,6 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
 
     message(STATUS "Detected Clang version 3.1+")
 
-    if (${PLATFORM_FREEBSD})
-	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=bfd")
-    endif()
 
     set(NORMAL_CXX_FLAGS "-Wall -Wold-style-cast -pedantic-errors -Wmissing-prototypes")
     set(NORMAL_CXX_FLAGS "${NORMAL_CXX_FLAGS} -Wno-error=deprecated-declarations") # updated version of physfs is not available on some platforms so we keep using deprecated functions, see #958