aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMFindModuleHelpers.cmake
diff options
context:
space:
mode:
authorChristophe Giboudeaux <christophe@krop.fr>2021-05-17 11:44:44 +0200
committerChristophe Giboudeaux <christophe@krop.fr>2021-05-25 08:07:34 +0000
commitc6e575539a4c0f370df65d15001e7f1b942b7e91 (patch)
tree5a472c6d8ff4b74b0ff7c74caa742fb00c80d03d /modules/ECMFindModuleHelpers.cmake
parent1312c40ca85e2e5bab6781897b4224cfd04f805a (diff)
downloadextra-cmake-modules-c6e575539a4c0f370df65d15001e7f1b942b7e91.tar.gz
extra-cmake-modules-c6e575539a4c0f370df65d15001e7f1b942b7e91.tar.bz2
Clean ECM files after the minimum version change
- Remove deprecated version checks - Use VERSION_GREATER_EQUAL
Diffstat (limited to 'modules/ECMFindModuleHelpers.cmake')
-rw-r--r--modules/ECMFindModuleHelpers.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/ECMFindModuleHelpers.cmake b/modules/ECMFindModuleHelpers.cmake
index 1d9b8eea..aec2abb4 100644
--- a/modules/ECMFindModuleHelpers.cmake
+++ b/modules/ECMFindModuleHelpers.cmake
@@ -105,11 +105,11 @@ Since pre-1.0.0.
include(CMakeParseArguments)
macro(ecm_find_package_version_check module_name)
- if(CMAKE_VERSION VERSION_LESS 2.8.12)
- message(FATAL_ERROR "CMake 2.8.12 is required by Find${module_name}.cmake")
+ if(CMAKE_VERSION VERSION_LESS 3.16.0)
+ message(FATAL_ERROR "CMake 3.16.0 is required by Find${module_name}.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 Find${module_name}.cmake")
+ if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 3.16.0)
+ message(AUTHOR_WARNING "Your project should require at least CMake 3.16.0 to use Find${module_name}.cmake")
endif()
endmacro()