summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-10-08 10:44:23 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-10-08 10:44:37 +0200
commit2c37e2cf535b7fef5fbcbfe71141c4886bed04ad (patch)
tree8cb4abdc68bd6595fc875ff775e3000cc63886da
parent3332ee613bd7ad8cc5ae09acd0665596a7f9070a (diff)
downloadtwin-style-mallory-2c37e2cf535b7fef5fbcbfe71141c4886bed04ad.tar.gz
twin-style-mallory-2c37e2cf535b7fef5fbcbfe71141c4886bed04ad.zip
Set the minimum required version of CMake as the first thing in the rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 91acce1..41bc6b0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,13 @@
# Improvements and feedback are welcome. #
################################################################################
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
+tde_set_project_version( )
+
+##### set project name ###########################
project(twin-style-mallory)
### Includes ###################################################################
@@ -18,11 +25,8 @@ include(CheckCXXSourceCompiles)
include(TDEMacros)
include(TDESetupPaths)
-include(TDEVersion)
### Basic project setup ########################################################
-cmake_minimum_required(VERSION ${TDE_CMAKE_MINIMUM_VERSION})
-tde_set_project_version()
tde_setup_paths()
### Options ####################################################################