[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [libksane] /: Use ecm_configure_package_config_file
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2016-07-11 17:13:53
Message-ID: E1bMemH-00038O-8j () code ! kde ! org
[Download RAW message or body]

Git commit f79ef951e0cb649d7c15d5ed3dd213ee0f26cc4e by Aleix Pol.
Committed on 11/07/2016 at 17:03.
Pushed by apol into branch 'master'.

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=C3=A5re S=C3=A4rs <kare.sars@iki.fi>

M  +2    -1    CMakeLists.txt

http://commits.kde.org/libksane/f79ef951e0cb649d7c15d5ed3dd213ee0f26cc4e

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}"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic