From 445ca7d9549712b63fb36b8bc866544e16749e21 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 18 Feb 2014 16:13:23 +0000 Subject: Use ecm_configure_package_config_file Ported with: sed -i -e 's/\(include(\)CMake\(PackageConfigHelpers)\)/\1ECM\2/' \ -e 's/\<\(configure_package_config_file\)/ecm_\1/' \ CMakeLists.txt See http://commits.kde.org/extra-cmake-modules/139f60d81653888f696ef433 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3416a171..197da7a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,9 +35,9 @@ add_subdirectory(autotests) # create a Config.cmake and a ConfigVersion.cmake file and install them set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5Config") -include(CMakePackageConfigHelpers) +include(ECMPackageConfigHelpers) -configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/KF5ConfigConfig.cmake.in" +ecm_configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/KF5ConfigConfig.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/KF5ConfigConfig.cmake" INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} ) -- cgit v1.2.1