Mac M1 adjustments to CMake build system
This commit is contained in:
parent
b6e44359cb
commit
882ab59501
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue