From 2c37e2cf535b7fef5fbcbfe71141c4886bed04ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Oct 2024 10:44:23 +0200 Subject: [PATCH] Set the minimum required version of CMake as the first thing in the rules. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 10 +++++++--- 1 file 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 ####################################################################