mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
libjpegturbo simd extension update cmake flag
This commit is contained in:
parent
d717de5719
commit
04849f26b2
5
3rdparty/libjpeg-turbo/CMakeLists.txt
vendored
5
3rdparty/libjpeg-turbo/CMakeLists.txt
vendored
@ -63,7 +63,7 @@ OCV_OPTION(ENABLE_LIBJPEG_TURBO_SIMD "Include SIMD extensions for libjpeg-turbo,
|
||||
option(WITH_ARITH_ENC "Include arithmetic encoding support when emulating the libjpeg v6b API/ABI" TRUE)
|
||||
option(WITH_ARITH_DEC "Include arithmetic decoding support when emulating the libjpeg v6b API/ABI" TRUE)
|
||||
set(WITH_SIMD 1)
|
||||
set(IS_LIBJPEG_TURBO_SIMD_AVAILABLE 0 PARENT_SCOPE)
|
||||
set(HAVE_LIBJPEG_TURBO_SIMD 0 PARENT_SCOPE)
|
||||
|
||||
include(CheckCSourceCompiles)
|
||||
include(CheckIncludeFiles)
|
||||
@ -185,7 +185,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
message(STATUS ${WITH_LIBJPEG_TURBO_SIMD})
|
||||
if(ENABLE_LIBJPEG_TURBO_SIMD)
|
||||
add_subdirectory(src/simd)
|
||||
if(NEON_INTRINSICS)
|
||||
@ -197,7 +196,7 @@ endif()
|
||||
|
||||
if(WITH_SIMD)
|
||||
message(STATUS "SIMD extensions: ${CPU_TYPE} (WITH_SIMD = ${WITH_SIMD})")
|
||||
set(IS_LIBJPEG_TURBO_SIMD_AVAILABLE 1 PARENT_SCOPE)
|
||||
set(HAVE_LIBJPEG_TURBO_SIMD 1 PARENT_SCOPE)
|
||||
if(MSVC_IDE OR XCODE)
|
||||
set_source_files_properties(${SIMD_OBJS} PROPERTIES GENERATED 1)
|
||||
endif()
|
||||
|
@ -1343,7 +1343,7 @@ if(WITH_JPEG OR HAVE_JPEG)
|
||||
status(" JPEG:" "build-${JPEG_LIBRARY} (ver ${JPEG_LIB_VERSION})")
|
||||
if(ENABLE_LIBJPEG_TURBO_SIMD)
|
||||
status(" SIMD Support Request:" "YES")
|
||||
if(IS_LIBJPEG_TURBO_SIMD_AVAILABLE)
|
||||
if(HAVE_LIBJPEG_TURBO_SIMD)
|
||||
status(" SIMD Support:" "YES")
|
||||
else()
|
||||
status(" SIMD Support:" "NO")
|
||||
|
Loading…
Reference in New Issue
Block a user