Avoid setting x86-specific getarch flags on non-x86
This commit is contained in:
parent
1f368b041d
commit
96f53db397
|
@ -71,9 +71,11 @@ if (X86_64)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# On x86 no AVX support is available
|
# On x86 no AVX support is available
|
||||||
|
if (X86 OR X86_64)
|
||||||
if ((DEFINED BINARY AND BINARY EQUAL 32) OR ("$CMAKE_SIZEOF_VOID_P}" EQUAL "4"))
|
if ((DEFINED BINARY AND BINARY EQUAL 32) OR ("$CMAKE_SIZEOF_VOID_P}" EQUAL "4"))
|
||||||
set(GETARCH_FLAGS "${GETARCH_FLAGS} -DNO_AVX -DNO_AVX2 -DNO_AVX512")
|
set(GETARCH_FLAGS "${GETARCH_FLAGS} -DNO_AVX -DNO_AVX2 -DNO_AVX512")
|
||||||
endif ()
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (INTERFACE64)
|
if (INTERFACE64)
|
||||||
message(STATUS "Using 64-bit integers.")
|
message(STATUS "Using 64-bit integers.")
|
||||||
|
|
Loading…
Reference in New Issue