summaryrefslogtreecommitdiffstats
path: root/modules/TDEMacros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r--modules/TDEMacros.cmake12
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 )
#################################################