Skip to content

Commit

Permalink
CMake avoid setting 32-bit arch on macOS which doesn't support it any…
Browse files Browse the repository at this point in the history
…more
  • Loading branch information
danra committed Apr 16, 2024
1 parent ffd5dad commit 116f3d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ IF (UNIX)
SET (D3_GAMEDIR "~/Descent3/")

SET(CMAKE_CXX_COMPILER "g++")
SET(CMAKE_CXX_FLAGS "-O0 -g -Wno-write-strings -Wno-multichar -m32 -Wno-address-of-temporary")
SET(CMAKE_C_FLAGS "-O0 -g -m32")
SET(CMAKE_CXX_FLAGS "-O0 -g -Wno-write-strings -Wno-multichar -Wno-address-of-temporary")
SET(CMAKE_C_FLAGS "-O0 -g")
SET(CMAKE_C_COMPILER "gcc")
IF (NOT APPLE)
LIST(APPEND CMAKE_CXX_FLAGS "-m32")
LIST(APPEND CMAKE_C_FLAGS "-m32")
ENDIF()
FIND_PACKAGE( SDL REQUIRED )
IF (APPLE)
# Provide FIND_PACKAGE( SDL_image ) below with an include dir and library that work with brew-installed sdl2_image
Expand Down

0 comments on commit 116f3d6

Please sign in to comment.