Explorar o código

* [lpng] BugFix: Correct some compiler warnings associated with lpng and SSE optimizations. This also enables SSE when available for lpng.

Robert MacGregor %!s(int64=4) %!d(string=hai) anos
pai
achega
7a78ec46c8
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Tools/CMake/libraries/lpng.cmake

+ 5 - 0
Tools/CMake/libraries/lpng.cmake

@@ -29,6 +29,11 @@ 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.
+set(PNG_INTEL_SSE on CACHE STRING "")
+add_definitions(-DPNG_INTEL_SSE_OPT=1)
+
 addInclude(${libDir}/zlib)
 
 finishLibrary("${libDir}/${PROJECT_NAME}")