From fe87f56f612237182ce76873ae090fcecc1af02e Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sat, 7 Sep 2024 10:32:26 +0300 Subject: cmake: require cmake 3.11 The main CMakeLists.txt had cmake_minimum_required (VERSION 2.8). This made the cmake to show a deprecation notice that support of all versions below 3.5 will be dropped soon. The maximum required cmake version is 3.11 for the litehtml module. So let's set it as a minimum for all other modules. The FATAL_ERROR option is ignored in CMake >= 2.6. --- protocols/Telegram/tdlib/td/CMakeLists.txt | 2 +- protocols/Telegram/tdlib/td/td/generate/tl-parser/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Telegram/tdlib') diff --git a/protocols/Telegram/tdlib/td/CMakeLists.txt b/protocols/Telegram/tdlib/td/CMakeLists.txt index 5756b5687c..9ec780b2cd 100644 --- a/protocols/Telegram/tdlib/td/CMakeLists.txt +++ b/protocols/Telegram/tdlib/td/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) +cmake_minimum_required(VERSION 3.11) if (POLICY CMP0065) # do not export symbols from executables diff --git a/protocols/Telegram/tdlib/td/td/generate/tl-parser/CMakeLists.txt b/protocols/Telegram/tdlib/td/td/generate/tl-parser/CMakeLists.txt index 6cf5331f4b..03e5a1631b 100644 --- a/protocols/Telegram/tdlib/td/td/generate/tl-parser/CMakeLists.txt +++ b/protocols/Telegram/tdlib/td/td/generate/tl-parser/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0 FATAL_ERROR) +cmake_minimum_required(VERSION 3.11) if (POLICY CMP0065) # do not export symbols from executables -- cgit v1.2.3