cmake: fix libpng build on MSVS2012
authorAlexander Alekhin <alexander.alekhin@intel.com>
Thu, 8 Sep 2016 16:41:11 +0000 (19:41 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Thu, 8 Sep 2016 16:41:11 +0000 (19:41 +0300)
3rdparty/libpng/CMakeLists.txt

index eaf2095..99e4663 100644 (file)
@@ -33,7 +33,8 @@ if(ENABLE_NEON)
   add_definitions(-DPNG_ARM_NEON_OPT=2)
 endif()
 
-if(ENABLE_SSE)
+if(ENABLE_SSE
+    AND (NOT MSVC OR (MSVC_VERSION GREATER 1799))) # MSVS2013+ (issue #7232)
   list(APPEND lib_srcs contrib/intel/intel_init.c contrib/intel/filter_sse2_intrinsics.c)
   add_definitions(-DPNG_INTEL_SSE)
 endif()