mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Update CMakeLists.txt to set CMAKE_SYSTEM_PROCESSOR explicitely
This commit is contained in:
parent
39562080c9
commit
9c887579fd
@ -54,6 +54,18 @@ add_definitions(-DPROJECT_VERSION="${PROJECT_VERSION}")
|
||||
add_definitions(-DPROJECT_APPCAST="${PROJECT_APPCAST}")
|
||||
add_definitions(-DPROJECT_DISPNAME="${PROJECT_DISPNAME}")
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# CPU architecture configuration
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
if(APPLE)
|
||||
if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
|
||||
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
|
||||
elseif(CMAKE_OSX_ARCHITECTURES MATCHES "arm64")
|
||||
set(CMAKE_SYSTEM_PROCESSOR "arm64")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Compiler flags
|
||||
#-------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user