File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -205,11 +205,11 @@ if(ENABLE_GENERIC)
205205 message (STATUS "Warning! Building generic build!" )
206206 set (_M_GENERIC 1)
207207 add_definitions (-D_M_GENERIC=1)
208- elseif (_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64" )
208+ elseif (_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x64| x86_64|amd64|AMD64" )
209209 set (_M_X86_64 1)
210210 add_definitions (-D_M_X86_64=1)
211211 check_and_add_flag(HAVE_SSE2 -msse2)
212- elseif (_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64" )
212+ elseif (_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64|ARM64 " )
213213 set (_M_ARM_64 1)
214214 add_definitions (-D_M_ARM_64=1)
215215 # CRC instruction set is used in the CRC32 hash function
@@ -339,7 +339,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
339339 set (CMAKE_XCODE_ATTRIBUTE_GCC_STRICT_ALIASING NO )
340340
341341 # Specify target CPUs.
342- if (_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64" )
342+ if (_ARCH_64 AND _M_X86_64 )
343343 check_and_add_flag(HAVE_MSSSE3 -mssse3)
344344 check_and_add_flag(HAVE_ARCH_CORE2 -march=core2)
345345 endif ()
@@ -634,7 +634,7 @@ if(ENABLE_VULKAN)
634634 endif ()
635635endif ()
636636
637- if (NOT WIN32 OR ( NOT ( CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" ) ))
637+ if (NOT ( WIN32 AND _M_ARM_64 ))
638638 # OpenGL is available on all platforms except windows-arm64
639639 add_definitions (-DHAS_OPENGL)
640640endif ()
You can’t perform that action at this time.
0 commit comments