        DEPENDS ${cl_kernels} "${OpenCV_SOURCE_DIR}/cmake/cl2cpp.cmake")
      source_group("OpenCL" FILES ${cl_kernels} "${CMAKE_CURRENT_BINARY_DIR}/opencl_kernels.cpp" "${CMAKE_CURRENT_BINARY_DIR}/opencl_kernels.hpp")
      list(APPEND lib_srcs ${cl_kernels} "${CMAKE_CURRENT_BINARY_DIR}/opencl_kernels.cpp" "${CMAKE_CURRENT_BINARY_DIR}/opencl_kernels.hpp")
+@@ -551,7 +551,7 @@
+     ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
+     LIBRARY_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
+     RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
+-    INSTALL_NAME_DIR lib
++    # INSTALL_NAME_DIR lib
+   )
+ 
+   # For dynamic link numbering convenions
 @@ -894,3 +894,4 @@
      __ocv_track_module_link_dependencies("${m}" DBG)
    endforeach()
  endmacro()
 +
-diff -urNb OpenCV-2.4.8.2/cmake/templates/OpenCVConfig.cmake.in OpenCV-src/cmake/templates/OpenCVConfig.cmake.in
+diff -burN OpenCV-2.4.8.2/cmake/templates/OpenCVConfig.cmake.in OpenCV/cmake/templates/OpenCVConfig.cmake.in
 --- OpenCV-2.4.8.2/cmake/templates/OpenCVConfig.cmake.in	2014-02-14 14:12:31.000000000 +0100
-+++ OpenCV-src/cmake/templates/OpenCVConfig.cmake.in	2015-01-11 15:12:06.109871677 +0100
++++ OpenCV/cmake/templates/OpenCVConfig.cmake.in	2015-01-29 14:20:42.003947242 +0100
 @@ -90,7 +90,7 @@
  
  # Provide the include directories to the caller

   list(APPEND OpenCV_INCLUDE_DIRS ${OpenCV2_INCLUDE_DIRS})
 
   set(OpenCV_ADD_DEBUG_RELEASE @OpenCV_ADD_DEBUG_RELEASE_CONFIGCMAKE@)

 
 # ======================================================
 # Link directories to add to the user project:
@@ -123,7 +123,7 @@
 # ==============================================================
 SET(OpenCV2_INCLUDE_DIRS @OpenCV2_INCLUDE_DIRS_CONFIGCMAKE@)
 if(OpenCV2_INCLUDE_DIRS)
-  include_directories(${OpenCV2_INCLUDE_DIRS})
