From 09027c3afdc1be4e468c586f1a26aa3406e910dc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 8 Oct 2024 22:16:07 +0900 Subject: [PATCH] Set the minimum required version of CMake as the first thing in the rules. Signed-off-by: Michele Calgaro --- CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c6cd02..261492a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,13 @@ # This software is licensed under the terms of the GNU GPL v3 license. # ################################################################################ -cmake_minimum_required( VERSION 3.1 ) +##### set project version ######################## +include( TDEVersion ) +cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} ) +tde_set_project_version( ) + +##### set project name ########################### project( xdg-desktop-portal-tde ) ### Required modules ########################################################### @@ -21,9 +26,9 @@ include( CheckCXXSourceCompiles ) ### TDE macros ################################################################# include( TDEMacros ) -tde_set_project_version( ) - include( TDESetupPaths ) + +### Basic project setup ######################################################## tde_setup_paths( ) ### Optional support ###########################################################