Merge pull request #621 from Ragora/bugfix-lpng-warnings

update lpng
This commit is contained in:
Jeff Hutchinson 2021-10-13 18:29:06 -04:00 committed by GitHub
commit 98657bde7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
476 changed files with 111109 additions and 2648 deletions

View file

@ -29,6 +29,17 @@ project(lpng)
set(PNG_ARM_NEON off CACHE STRING "")
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.
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)
finishLibrary("${libDir}/${PROJECT_NAME}")