Skip to content

Commit

Permalink
change cross compile build rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpearse committed Dec 19, 2023
1 parent 1728220 commit 53039a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(NOT CMAKE_BUILD_TYPE)
endif()

if(APPLE)
if(NOT DEFINED CMAKE_OSX_ARCHITECTURES)
if("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
# Check if the target architecture is arm64
include(CheckCXXSourceRuns)
set(CMAKE_REQUIRED_FLAGS "-arch arm64")
Expand Down

0 comments on commit 53039a5

Please sign in to comment.