mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
* [lpng] BugFix: Corrections to allow the SSE intrinsics to build properly.
This commit is contained in:
parent
7a78ec46c8
commit
c965429cf6
4 changed files with 468 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue