Safer hack to build on M1.

This commit is contained in:
Henrik Rydgård 2020-12-02 22:46:56 +01:00
parent 5126c91a81
commit 90f8799065
2 changed files with 8 additions and 3 deletions

View File

@ -9,7 +9,6 @@ if(NOT ANDROID)
endif() endif()
enable_language(ASM) enable_language(ASM)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
add_definitions(-D__STDC_CONSTANT_MACROS) add_definitions(-D__STDC_CONSTANT_MACROS)
@ -61,8 +60,6 @@ if(CMAKE_SYSTEM_PROCESSOR)
endif() endif()
endif() endif()
include(ccache)
# the libraries in the ffmpeg/ directory are not compatible with mingw # the libraries in the ffmpeg/ directory are not compatible with mingw
if(MINGW AND NOT DEFINED USE_SYSTEM_FFMPEG) if(MINGW AND NOT DEFINED USE_SYSTEM_FFMPEG)
set(USE_SYSTEM_FFMPEG ON) set(USE_SYSTEM_FFMPEG ON)
@ -93,6 +90,14 @@ if(ANDROID OR WIN32 OR (UNIX AND NOT ARM_NO_VULKAN))
set(VULKAN ON) set(VULKAN ON)
endif() endif()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
if(NOT (ARM64 AND MACOSX))
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/sdl)
endif()
include(ccache)
if(GOLD) if(GOLD)
add_definitions(-DGOLD) add_definitions(-DGOLD)
message("Gold Build") message("Gold Build")