ios: disable IPPICV on i386-iPhoneSimulator
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Fri, 14 Oct 2016 23:40:06 +0000 (02:40 +0300)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sat, 15 Oct 2016 00:29:21 +0000 (03:29 +0300)
cmake/OpenCVFindIPP.cmake

index 4317211..6913052 100644 (file)
@@ -234,6 +234,12 @@ if(DEFINED ENV{OPENCV_IPP_PATH} AND NOT DEFINED IPPROOT)
   set(IPPROOT "$ENV{OPENCV_IPP_PATH}")
 endif()
 if(NOT DEFINED IPPROOT)
+  if(IOS AND NOT x86_64)
+    # 2016/10: There is an issue with MacOS binary .a file.
+    # It is fat multiarch library, and can't be "merged" multiple times.
+    # So try to ignore i386 version
+    return()
+  endif()
   include("${OpenCV_SOURCE_DIR}/3rdparty/ippicv/downloader.cmake")
   if(DEFINED OPENCV_ICV_PATH)
     set(IPPROOT "${OPENCV_ICV_PATH}")