Skip to content

Commit

Permalink
Avoid unconditionally setting no optimization and debug symbols in ma…
Browse files Browse the repository at this point in the history
…cOS/Linux release builds
  • Loading branch information
danra committed Apr 17, 2024
1 parent c7898fa commit 7baded2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ IF (UNIX)
SET (D3_GAMEDIR "~/Descent3/")

SET(CMAKE_CXX_COMPILER "g++")
SET(CMAKE_CXX_FLAGS "-O0 -g -Wno-write-strings -Wno-multichar -Wno-address-of-temporary")
SET(CMAKE_C_FLAGS "-O0 -g")
STRING(APPEND CMAKE_CXX_FLAGS " -Wno-write-strings -Wno-multichar -Wno-address-of-temporary")
SET(CMAKE_C_COMPILER "gcc")
IF (NOT APPLE)
LIST(APPEND CMAKE_CXX_FLAGS "-m32")
Expand Down

0 comments on commit 7baded2

Please sign in to comment.