Skip to content

Commit

Permalink
Fix building crypto++ for x64 target on Apple silicon MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Dec 10, 2024
1 parent 5497854 commit 93a8600
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(NOT APPLE AND CMAKE_SYSTEM_PROCESSOR MATCHES ${pattern})
set(${output} TRUE PARENT_SCOPE)
endif()
if(APPLE AND CMAKE_OSX_ARCHITECTURES MATCHES ${pattern})
set(${output} TRUE PARENT_SCOPE)
endif()
endif()
Expand Down

0 comments on commit 93a8600

Please sign in to comment.