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