summaryrefslogtreecommitdiff
path: root/games-engines/odamex/files/odamex-10.0.0-master-std.patch
blob: 2fe299fd12dfc408edb0a44d23b14718da8c4d05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 08ff1a04abfde739f7b6d273ebfad65e9a09c24a Mon Sep 17 00:00:00 2001
From: James Le Cuirot <chewi@gentoo.org>
Date: Sun, 20 Mar 2022 13:19:49 +0000
Subject: [PATCH] Set odamast C++ standard to 98

Otherwise the use of `byte` is ambiguous with newer compilers, resulting
in a build error.

(cherry picked from commit 4c06d27e60b1e10c4d661523894430323398b140)
---
 master/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/master/CMakeLists.txt b/master/CMakeLists.txt
index cbe6a0311..f216eab9a 100644
--- a/master/CMakeLists.txt
+++ b/master/CMakeLists.txt
@@ -6,6 +6,7 @@ file(GLOB MASTER_SOURCES *.cpp *.h)
 # Master target
 add_executable(odamast ${MASTER_SOURCES})
 odamex_target_settings(odamast)
+set_property(TARGET odamast PROPERTY CXX_STANDARD 98)
 
 if(WIN32)
   target_link_libraries(odamast wsock32)
-- 
2.34.1