1
0
Fork 0

Mac M1 adjustments to CMake build system

This commit is contained in:
Daniel 0xdbeef Zalega 2021-12-10 13:40:15 +01:00
parent b6e44359cb
commit 882ab59501
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ endif(UNIX)
if(CMAKE_SYSTEM_PROCESSOR MATCHES AMD|x86)
set(VM_SRCS code/qcommon/vm_x86.c)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES aarch)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES aarch|arm64)
set(VM_SRCS code/qcommon/vm_aarch64.c)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES arm)
set(VM_SRCS code/qcommon/vm_armv7l.c)

View File

@ -340,7 +340,7 @@ if(SDL2_FOUND)
# For OS X, SDL2 uses Cocoa as a backend so it must link to Cocoa.
# For more details, please see above.
set_target_properties(SDL2::Core PROPERTIES
IMPORTED_LOCATION "${SDL2_LIBRARY}/SDL2"
IMPORTED_LOCATION "${SDL2_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${SDL2_INCLUDE_DIR}")
else()
# For threads, as mentioned Apple doesn't need this.