From c10fea8368bd5380e0229a36a968e4b4c1ec4063 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Sat, 25 Jun 2011 09:36:16 +0000 Subject: [PATCH] corrected installation path of OpenCVConfig.cmake on Linux/BSD (ticket #1168) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b74c4173c7..2ac2e3859b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1204,8 +1204,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() # --------------------------------------------------------------------------------------------