diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-13 12:46:59 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-14 23:04:48 +0900 |
commit | a8c01019d7aaa2e9e9165504cfdf76b05ec128dc (patch) | |
tree | bbc98d883fa0f18f3273397cadb1a7a13bfa9b17 /modules/TDEMacros.cmake | |
parent | 620a9aa9f96dfd2fb45d54479eb47655e5c1f56d (diff) | |
download | tde-cmake-a8c01019.tar.gz tde-cmake-a8c01019.zip |
Set cmake minimum version in a centralized place
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index de51342..3012ec9 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -18,11 +18,18 @@ ################################################# ##### +##### Need cmake minimum version + +include( TDEVersion ) + + +################################################# +##### ##### initialization... if( NOT TDE_CMAKE_ROOT ) - if( "${CMAKE_VERSION}" VERSION_LESS "3.5" ) - message( FATAL_ERROR "CMake >= 3.5.0 required" ) + if( "${CMAKE_VERSION}" VERSION_LESS "${TDE_CMAKE_MINIMUM_VERSION}" ) + message( FATAL_ERROR "CMake >= ${TDE_CMAKE_MINIMUM_VERSION} required" ) endif() if( ${CMAKE_CURRENT_LIST_DIR} STREQUAL ${CMAKE_ROOT}/Modules ) @@ -83,7 +90,6 @@ include( CheckCXXSourceCompiles ) include( CheckLinkerFlag OPTIONAL ) include( CheckSymbolExists ) include( CheckTypeSize ) -include( TDEVersion ) ################################################# |