diff options
author | Alex Merry <kde@randomguy3.me.uk> | 2014-02-18 16:13:23 +0000 |
---|---|---|
committer | Alex Merry <kde@randomguy3.me.uk> | 2014-02-18 16:13:23 +0000 |
commit | 445ca7d9549712b63fb36b8bc866544e16749e21 (patch) | |
tree | 1df02395da01f1951625504d9e8d2ca1af76c411 | |
parent | b2366e9e0ad68fdf56569602fab17df877cc0c6f (diff) | |
download | kconfig-445ca7d9549712b63fb36b8bc866544e16749e21.tar.gz kconfig-445ca7d9549712b63fb36b8bc866544e16749e21.tar.bz2 |
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
-rw-r--r-- | CMakeLists.txt | 4 |
1 files 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} ) |