Skip to content

Commit

Permalink
Unix: set -std=c++14 explicitly
Browse files Browse the repository at this point in the history
Otherwise gcc 12 defaults to c++17, and there are still cases of e.g.
`register int i;` which it does not like.
  • Loading branch information
th1000s committed Apr 16, 2024
1 parent 90583a7 commit 384942b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SET (D3_GAMEDIR "~/Descent3/")
ENDIF()

SET(CMAKE_CXX_COMPILER "g++")
SET(CMAKE_CXX_FLAGS "-O0 -g -Wno-write-strings -Wno-multichar ${BITS} ${EXTRA_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS "-O0 -g -std=c++14 -Wno-write-strings -Wno-multichar ${BITS} ${EXTRA_CXX_FLAGS}")
SET(CMAKE_C_FLAGS "-O0 -g ${BITS}")
SET(CMAKE_C_COMPILER "gcc")

Expand Down

0 comments on commit 384942b

Please sign in to comment.