Skip to content

Commit

Permalink
Linux-clang: also apply -Wno-address-of-temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
Lgt2x committed Apr 18, 2024
1 parent 47f0f6e commit c68d641
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ SET(CMAKE_POSITION_INDEPENDENT_CODE ON)

IF (UNIX)
SET (D3_GAMEDIR "~/Descent3/")
IF (APPLE)
SET(EXTRA_CXX_FLAGS "-Wno-address-of-temporary")
ELSE()
SET(EXTRA_CXX_FLAGS "-fpermissive")

IF (UNIX AND NOT APPLE)
SET(EXTRA_CXX_FLAGS "-fpermissive ")
ENDIF()

STRING(APPEND CMAKE_CXX_FLAGS " -Wno-write-strings -Wno-multichar ${BITS} ${EXTRA_CXX_FLAGS}")
STRING(APPEND CMAKE_CXX_FLAGS " -Wno-write-strings -Wno-multichar -Wno-address-of-temporary ${BITS} ${EXTRA_CXX_FLAGS}")
STRING(APPEND CMAKE_C_FLAGS " ${BITS}")

FIND_PACKAGE(SDL REQUIRED)
Expand Down

0 comments on commit c68d641

Please sign in to comment.