Check CMAKE_SYSTEM_PROCESSOR when setting -maes

This commit is contained in:
Luke Street 2021-02-01 05:13:23 +00:00
parent d523fad83f
commit 271c275fcf
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ add_library(athena-wiisave EXCLUDE_FROM_ALL
include/md5.h
include/sha1.h
)
if(NOT MSVC AND NOT GEKKO AND NOT NX)
if(NOT MSVC AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL x86_64)
set_source_files_properties(src/aes.cpp PROPERTIES COMPILE_FLAGS -maes)
endif()