summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-08 22:16:07 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-09 11:12:49 +0900
commit75181937bfbc730c99192e5c8450e683ef2785e6 (patch)
tree5eb138f5fb96f858618aed30367558543f724932
parent837de487919a3966e7e616f420b9ad1033ca0ba0 (diff)
downloadxdg-desktop-portal-tde-75181937bfbc730c99192e5c8450e683ef2785e6.tar.gz
xdg-desktop-portal-tde-75181937bfbc730c99192e5c8450e683ef2785e6.zip
Set the minimum required version of CMake as the first thing in the rules.r14.1.3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 09027c3afdc1be4e468c586f1a26aa3406e910dc)
-rw-r--r--CMakeLists.txt11
1 files 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 ###########################################################