Blame SOURCES/opencv-pkgcmake2.patch

e99b60
diff -up OpenCV-2.4.2/cmake/templates/OpenCVConfig.cmake.in.pkgcmake2 OpenCV-2.4.2/cmake/templates/OpenCVConfig.cmake.in
e99b60
--- OpenCV-2.4.2/cmake/templates/OpenCVConfig.cmake.in.pkgcmake2	2012-07-09 18:21:58.374388493 +0200
e99b60
+++ OpenCV-2.4.2/cmake/templates/OpenCVConfig.cmake.in	2012-07-09 18:22:32.465014020 +0200
e99b60
@@ -53,11 +53,7 @@ set(OpenCV_USE_MANGLED_PATHS @OpenCV_USE
e99b60
 get_filename_component(OpenCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH CACHE)
e99b60
 
e99b60
 if(NOT WIN32 OR OpenCV_ANDROID_NATIVE_API_LEVEL GREATER 0)
e99b60
-  if(OpenCV_ANDROID_NATIVE_API_LEVEL GREATER 0)
e99b60
-    set(OpenCV_INSTALL_PATH "${OpenCV_CONFIG_PATH}/../../..")
e99b60
-  else()
e99b60
-    set(OpenCV_INSTALL_PATH "${OpenCV_CONFIG_PATH}/../..")
e99b60
-  endif()
e99b60
+  set(OpenCV_INSTALL_PATH "${OpenCV_CONFIG_PATH}/../../..")
e99b60
   # Get the absolute path with no ../.. relative marks, to eliminate implicit linker warnings
e99b60
   if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_LESS 2.8)
e99b60
     get_filename_component(OpenCV_INSTALL_PATH "${OpenCV_INSTALL_PATH}" ABSOLUTE)