From d9404fc566bbb10cab4c2e1f36050c6b1bdbc679 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 8 May 2025 05:14:03 +0000 Subject: [PATCH] Raise minimum required cmake version to 3.25 Use policies up to 3.31 --- CMakeLists.txt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9393d81d72..36e54053d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,15 +4,7 @@ # For license and copyright information please follow this link: # https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL -if (APPLE) - # target_precompile_headers with COMPILE_LANGUAGE restriction. - cmake_minimum_required(VERSION 3.23) -else() - cmake_minimum_required(VERSION 3.16) -endif() -if (POLICY CMP0149) - cmake_policy(SET CMP0149 NEW) -endif() +cmake_minimum_required(VERSION 3.25...3.31) set_property(GLOBAL PROPERTY USE_FOLDERS ON)