Raise minimum required cmake version to 3.25

Use policies up to 3.31
This commit is contained in:
Ilya Fedin 2025-05-08 05:14:03 +00:00 committed by John Preston
parent bcd899c641
commit d9404fc566

View file

@ -4,15 +4,7 @@
# For license and copyright information please follow this link: # For license and copyright information please follow this link:
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL # https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
if (APPLE) cmake_minimum_required(VERSION 3.25...3.31)
# 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()
set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY USE_FOLDERS ON)