From f614d6fb8e60f7e004c06e8b8d0031054be4e571 Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Sun, 9 Nov 2014 20:13:57 +0400 Subject: [PATCH] Use search-friendly install prefix for config By default /lib is not in list of possible package config locations. From documentation: / /(cmake|CMake)/ /*/ /*/(cmake|CMake)/ /(lib/|lib|share)/cmake/*/ /(lib/|lib|share)/*/ /(lib/|lib|share)/*/(cmake|CMake)/ * http://www.cmake.org/cmake/help/v3.0/command/find_package.html#command:find_package --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fd0b23..fec9ac0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ endif() ## During package installation, install CometConfig.cmake install(TARGETS comet EXPORT CometConfig) -install(EXPORT CometConfig NAMESPACE Comet:: DESTINATION lib) +install(EXPORT CometConfig NAMESPACE Comet:: DESTINATION lib/cmake/Comet) ## Directly from build tree # create CometConfig.cmake @@ -138,4 +138,4 @@ write_basic_package_version_file( COMPATIBILITY SameMajorVersion) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/CometConfigVersion.cmake - DESTINATION lib) \ No newline at end of file + DESTINATION lib/cmake/Comet)