From d1958719048a8276aa29a7130db3e3b92cdbfe81 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky <no@email> Date: Sat, 25 Jun 2011 09:39:41 +0000 Subject: [PATCH] propagated fix for ticket #1168 to trunk --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84546fc4fc..32acdf18c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1232,8 +1232,8 @@ exec_program(mkdir ARGS "-p \"${CMAKE_BINARY_DIR}/unix-install/\"" OUTPUT_VARIAB configure_file("${CMAKE_CURRENT_SOURCE_DIR}/OpenCVConfig.cmake.in" "${CMAKE_BINARY_DIR}/unix-install/OpenCVConfig.cmake" IMMEDIATE @ONLY) if(UNIX) - # For a command "FIND_PACKAGE(FOO)", CMake will look at the directory /usr/share|lib/FOO/FOOConfig.cmake, so: - install(FILES ${CMAKE_BINARY_DIR}/unix-install/OpenCVConfig.cmake DESTINATION share/opencv/) + # For a command "FIND_PACKAGE(FOO)", CMake will look at the directory /usr/share|lib/cmake/FOO/FOOConfig.cmake, so: + install(FILES ${CMAKE_BINARY_DIR}/unix-install/OpenCVConfig.cmake DESTINATION share/cmake/OpenCV/) endif() # --------------------------------------------------------------------------------------------