Blame SOURCES/opencv-3.4.1-cmake_paths.patch

d0ea16
--- ./CMakeLists.txt.orig	2018-02-27 01:46:32.259819239 +0000
d0ea16
+++ ./CMakeLists.txt	2018-02-27 19:48:19.658736383 +0000
d0ea16
@@ -439,19 +439,14 @@ else()
d0ea16
     ocv_update(OPENCV_CONFIG_INSTALL_PATH  ".")
d0ea16
   else()
d0ea16
     include(GNUInstallDirs)
d0ea16
-    ocv_update(OPENCV_LIB_INSTALL_PATH     ${CMAKE_INSTALL_LIBDIR}${LIB_SUFFIX})
d0ea16
+    ocv_update(OPENCV_LIB_INSTALL_PATH     ${CMAKE_INSTALL_LIBDIR})
d0ea16
     ocv_update(OPENCV_3P_LIB_INSTALL_PATH  share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH})
d0ea16
     ocv_update(OPENCV_SAMPLES_SRC_INSTALL_PATH    share/OpenCV/samples)
d0ea16
     ocv_update(OPENCV_JAR_INSTALL_PATH share/OpenCV/java)
d0ea16
     ocv_update(OPENCV_OTHER_INSTALL_PATH   share/OpenCV)
d0ea16
 
d0ea16
     if(NOT DEFINED OPENCV_CONFIG_INSTALL_PATH)
d0ea16
-      math(EXPR SIZEOF_VOID_P_BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
d0ea16
-      if(LIB_SUFFIX AND NOT SIZEOF_VOID_P_BITS EQUAL LIB_SUFFIX)
d0ea16
-        ocv_update(OPENCV_CONFIG_INSTALL_PATH ${CMAKE_INSTALL_LIBDIR}${LIB_SUFFIX}/cmake/opencv)
d0ea16
-      else()
d0ea16
-        ocv_update(OPENCV_CONFIG_INSTALL_PATH share/OpenCV)
d0ea16
-      endif()
d0ea16
+      ocv_update(OPENCV_CONFIG_INSTALL_PATH lib${LIB_SUFFIX}/OpenCV)
d0ea16
     endif()
d0ea16
   endif()
d0ea16
   ocv_update(OPENCV_INCLUDE_INSTALL_PATH "include")