We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a7e3c9 commit 869b18cCopy full SHA for 869b18c
CMakeLists.txt
@@ -13,10 +13,11 @@ project(yquake2-ctf)
13
14
# Enforce compiler flags (GCC / Clang compatible, yquake2
15
# won't build with another compiler anyways)
16
+# -std=gnu99 -> Force same C standard as in the Makefile
17
# -Wall -> More warnings
18
# -fno-strict-aliasing -> Quake 2 is far away from strict aliasing
19
# -fwrapv -> Make signed integer overflows defined
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -fwrapv")
20
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -fno-strict-aliasing -fwrapv")
21
22
# Use -O2 as maximum optimization level. -O3 has it's problems with yquake2.
23
string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
0 commit comments