diff --git a/CMakeLists.txt b/CMakeLists.txt index f4b9108e53..2b624d2402 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -433,7 +433,7 @@ add_subdirectory(FEXHeaderUtils/) add_subdirectory(CodeEmitter/) add_subdirectory(FEXCore/) -if (NOT MINGW_BUILD) +if (_M_ARM_64 AND NOT MINGW_BUILD) # Binfmt_misc files must be installed prior to Source/ installs add_subdirectory(Data/binfmts/) endif() diff --git a/Source/Tools/FEXLoader/CMakeLists.txt b/Source/Tools/FEXLoader/CMakeLists.txt index 80f08b1297..8d5a0805fe 100644 --- a/Source/Tools/FEXLoader/CMakeLists.txt +++ b/Source/Tools/FEXLoader/CMakeLists.txt @@ -50,7 +50,7 @@ endfunction() GenerateInterpreter(FEXLoader 0) GenerateInterpreter(FEXInterpreter 1) -if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") +if (_M_ARM_64) if (NOT USE_LEGACY_BINFMTMISC) # Just restart the systemd service add_custom_target(binfmt_misc