Only default IMAGE_SUPPORT=ON for x86

Image support does not compile on other archectures, since it relies on
the x86 only header "x86intrin.h".

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I120d15870e74e20bd618e6f5da8c05e28fb1203b
Этот коммит содержится в:
Jeremy Newton
2022-04-07 16:27:34 -04:00
коммит произвёл Kent Russell
родитель 9265409f08
Коммит a0931f4a3c
+2 -2
Просмотреть файл
@@ -191,10 +191,10 @@ set ( SRCS core/util/lnx/os_linux.cpp
target_sources( ${CORE_RUNTIME_TARGET} PRIVATE ${SRCS} )
if ( NOT DEFINED IMAGE_SUPPORT )
if ( NOT DEFINED IMAGE_SUPPORT AND CMAKE_SYSTEM_PROCESSOR MATCHES "i?86|x86_64|amd64|AMD64" )
set ( IMAGE_SUPPORT ON )
endif()
set ( IMAGE_SUPPORT ${IMAGE_SUPPORT} CACHE BOOL "Build with image support (default: ON)." )
set ( IMAGE_SUPPORT ${IMAGE_SUPPORT} CACHE BOOL "Build with image support (default: ON for x86, OFF elsewise)." )
## Optional image module defintions.
if(${IMAGE_SUPPORT})