Skip to content

Commit

Permalink
Merge pull request #683 from twvd/cryptocmake
Browse files Browse the repository at this point in the history
Fix building crypto++ for x64 target on Apple silicon MacOS
  • Loading branch information
wheremyfoodat authored Dec 10, 2024
2 parents 5497854 + d3946f8 commit 4e2c825
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion third_party/cryptopp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ function(DumpMachine output pattern)
set(${output} 0 PARENT_SCOPE)

else ()
if(CMAKE_SYSTEM_PROCESSOR MATCHES ${pattern})
if("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "" AND CMAKE_SYSTEM_PROCESSOR MATCHES ${pattern})
set(${output} TRUE PARENT_SCOPE)
endif()
if(CMAKE_OSX_ARCHITECTURES MATCHES ${pattern})
set(${output} TRUE PARENT_SCOPE)
endif()
endif()
Expand Down

0 comments on commit 4e2c825

Please sign in to comment.