CMake avoid setting 32-bit arch on macOS which doesn't support it anymore

This commit is contained in:
Dan Raviv 2024-04-16 12:45:21 -07:00
parent ffd5dadc04
commit 116f3d6753

View File

@ -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