Skip to content

Commit 9303898

Browse files
authored
CMake update to fix cases where DIRECTX_ARCH is not defined (#571)
1 parent 8f79186 commit 9303898

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/CompilerAndLinker.cmake

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Aa][Rr][Mm]64$")
3030
set(DIRECTX_ARCH arm64)
3131
elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Aa][Rr][Mm]64EC$")
3232
set(DIRECTX_ARCH arm64ec)
33-
elseif((NOT (DEFINED DIRECTX_ARCH)) AND (CMAKE_SYSTEM_NAME STREQUAL "Linux"))
34-
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
35-
set(DIRECTX_ARCH x64)
36-
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
33+
elseif(NOT (DEFINED DIRECTX_ARCH))
34+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "[Aa][Rr][Mm]64|aarch64|arm64")
3735
set(DIRECTX_ARCH arm64)
36+
else()
37+
set(DIRECTX_ARCH x64)
3838
endif()
3939
endif()
4040

0 commit comments

Comments
 (0)