aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2016-07-11 19:03:15 +0200
committerAleix Pol <[email protected]>2016-07-11 19:03:15 +0200
commitf79ef951e0cb649d7c15d5ed3dd213ee0f26cc4e (patch)
tree6b6affce5085a7889c83e8e031030e65cc14b087
parent84c191f81bfce107f0b4515da0de7659cb9a7635 (diff)
Use ecm_configure_package_config_file
find_package() is specified there, otherwise it won't work if it's not defined by another package. CCMAIL: Kåre Särs <[email protected]>
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ee35783..ba3c2b1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,6 +17,7 @@ include(FeatureSummary)
include(ECMSetupVersion)
include(ECMGenerateHeaders)
include(ECMInstallIcons)
+include(ECMPackageConfigHelpers)
include(CMakePackageConfigHelpers)
include(CheckFunctionExists)
include(KDEInstallDirs)
@@ -63,7 +64,7 @@ add_subdirectory(tests)
# Create a Config.cmake and a ConfigVersion.cmake file and install them
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5Sane")
-configure_package_config_file(
+ecm_configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/KF5SaneConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/KF5SaneConfig.cmake"
INSTALL_DESTINATION "${CMAKECONFIG_INSTALL_DIR}"