Commit f79ef951 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

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 <kare.sars@iki.fi>
parent 84c191f8
......@@ -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}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment