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
Этот коммит содержится в:
коммит произвёл
Kent Russell
родитель
9265409f08
Коммит
a0931f4a3c
@@ -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})
|
||||
|
||||
Ссылка в новой задаче
Block a user