From 014cd19e930e81f04050fac9e81f2a46d8fa0188 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 15 Jun 2022 13:02:15 +0400 Subject: [PATCH] Restrict CMake to 3.23+ on macOS. --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 15fda19810..9694f98ccb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)