meta: update rosetta support
This commit is contained in:
@@ -19,7 +19,7 @@ function(get_platform_details)
|
||||
elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
||||
set(system_name "win32")
|
||||
else ()
|
||||
message(FATAL_ERROR "Unsupported platform: ${CMAKE_SYSTEM_NAME}")
|
||||
string(TOLOWER "${CMAKE_SYSTEM_NAME}" system_name)
|
||||
endif ()
|
||||
|
||||
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
|
||||
@@ -27,7 +27,7 @@ function(get_platform_details)
|
||||
elseif ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64")
|
||||
set(system_arch "aarch64")
|
||||
else ()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}")
|
||||
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" system_arch)
|
||||
endif ()
|
||||
|
||||
set(${arg_SYSTEM} ${system_name} PARENT_SCOPE)
|
||||
|
||||
Reference in New Issue
Block a user