* [lpng] BugFix: Corrections to allow the SSE intrinsics to build properly.

This commit is contained in:
Robert MacGregor 2021-10-12 17:38:27 -04:00
parent 7a78ec46c8
commit c965429cf6
4 changed files with 468 additions and 2 deletions

View file

@ -300,6 +300,7 @@ macro(finishLibrary)
# more paths?
if(${ARGC} GREATER 0)
foreach(dir ${ARGV0})
MESSAGE(STATUS "TEST: ${dir}")
addPath("${dir}")
endforeach()
endif()

View file

@ -31,8 +31,14 @@ add_definitions(-DPNG_ARM_NEON_OPT=0)
# Enables SSE for libpng - also takes care of compiler warnings.
# If we don't want SSE, we should set it to off/0.
set(PNG_INTEL_SSE on CACHE STRING "")
add_definitions(-DPNG_INTEL_SSE_OPT=1)
if ( TORQUE_CPU_X32 OR TORQUE_CPU_X64 )
set(PNG_INTEL_SSE on CACHE STRING "")
add_definitions(-DPNG_INTEL_SSE_OPT=1)
addPath("${libDir}/lpng/intel")
else()
set(PNG_INTEL_SSE off CACHE STRING "")
add_definitions(-DPNG_INTEL_SSE_OPT=0)
endif()
addInclude(${libDir}/zlib)