Skip to content

Commit

Permalink
fix: mac x64 build error
Browse files Browse the repository at this point in the history
  • Loading branch information
barry-ran committed Jan 10, 2025
1 parent 0a50b18 commit 25944d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QtScrcpy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 25944d7

Please sign in to comment.