fix: mac x64 build error
Some checks are pending
MacOS / Build (push) Waiting to run
Ubuntu / Build (push) Waiting to run
Windows / Build (push) Waiting to run

This commit is contained in:
rankun 2025-01-10 13:18:40 +08:00
parent 0a50b18e12
commit 25944d766d

View file

@ -36,7 +36,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CMAKE_OSX_ARCHITECTURES arm64)
endif()
set(QC_CPU_ARCH ${CMAKE_OSX_ARCHITECTURES})
if (CMAKE_OSX_ARCHITECTURES MATCHES "arm64")
set(QC_CPU_ARCH arm64)
endif()
endif()
message(STATUS "[${PROJECT_NAME}] CPU_ARCH:${QC_CPU_ARCH}")