From a1d6d8f7259ade901a87b33edbef8b31bffb5e26 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 6 Feb 2015 11:31:19 +0000 Subject: Document when modules were added to ECM. --- find-modules/FindKF5.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'find-modules/FindKF5.cmake') diff --git a/find-modules/FindKF5.cmake b/find-modules/FindKF5.cmake index 2e1fca87..30b20948 100644 --- a/find-modules/FindKF5.cmake +++ b/find-modules/FindKF5.cmake @@ -16,6 +16,8 @@ # If all the required components (those given in the COMPONENTS argument, but # not those given in the OPTIONAL_COMPONENTS argument) are found, ``KF5_FOUND`` # will be set to true. Otherwise, it will be set to false. +# +# Since pre-1.0.0. #============================================================================= # Copyright 2014 Alex Merry -- cgit v1.2.1 From 37aa23a96e37fa584a68858aef4b4637078e4779 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Thu, 23 Apr 2015 04:17:30 +1000 Subject: Port remaining find modules to ecm_find_package_version_check. REVIEW: 123470 --- find-modules/FindKF5.cmake | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'find-modules/FindKF5.cmake') diff --git a/find-modules/FindKF5.cmake b/find-modules/FindKF5.cmake index 30b20948..b0ba9f6b 100644 --- a/find-modules/FindKF5.cmake +++ b/find-modules/FindKF5.cmake @@ -47,12 +47,9 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #============================================================================= -if(CMAKE_VERSION VERSION_LESS 2.8.12) - message(FATAL_ERROR "CMake 2.8.12 is required by FindKF5.cmake") -endif() -if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12) - message(AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use FindKF5.cmake") -endif() +include(${CMAKE_CURRENT_LIST_DIR}/ECMFindModuleHelpersStub.cmake) + +ecm_find_package_version_check(KF5) if (NOT KF5_FIND_COMPONENTS) set(KF5_NOT_FOUND_MESSAGE "The KF5 package requires at least one component") -- cgit v1.2.1