summaryrefslogtreecommitdiff
path: root/protocols/Telegram/tdlib
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2024-09-07 10:32:26 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-07 12:44:33 +0300
commitfe87f56f612237182ce76873ae090fcecc1af02e (patch)
tree59de5e8d93bf5175d369d768dbebd474f5c22d7a /protocols/Telegram/tdlib
parentdd93365a63c1f051e4b453ee974a1708900c49ac (diff)
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.
Diffstat (limited to 'protocols/Telegram/tdlib')
-rw-r--r--protocols/Telegram/tdlib/td/CMakeLists.txt2
-rw-r--r--protocols/Telegram/tdlib/td/td/generate/tl-parser/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
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