Restrict CMake to 3.23+ on macOS.

This commit is contained in:
John Preston 2022-06-15 13:02:15 +04:00
parent 0f5d71434f
commit 014cd19e93
1 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,12 @@
# For license and copyright information please follow this link:
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
cmake_minimum_required(VERSION 3.16)
if (APPLE)
# target_precompile_headers with COMPILE_LANGUAGE restriction.
cmake_minimum_required(VERSION 3.23)
else()
cmake_minimum_required(VERSION 3.16)
endif()
cmake_policy(SET CMP0076 NEW)
cmake_policy(SET CMP0091 NEW)