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:09 +0900
commit09027c3afdc1be4e468c586f1a26aa3406e910dc (patch)
tree5eb138f5fb96f858618aed30367558543f724932
parent68064f8d8638029e9a50cb0eda097e3017641de4 (diff)
downloadxdg-desktop-portal-tde-09027c3afdc1be4e468c586f1a26aa3406e910dc.tar.gz
xdg-desktop-portal-tde-09027c3afdc1be4e468c586f1a26aa3406e910dc.zip
Set the minimum required version of CMake as the first thing in the rules.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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 ###########################################################