diff options
| author | levlam <levlam@telegram.org> | 2021-06-13 23:38:48 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-06-13 23:38:48 +0300 |
| commit | 924286da8ff5b3d0a42b2e93beada80abb43b4cd (patch) | |
| tree | e02b597632f44a32b38cdab2a2274334910dd09b /tdtl/CMakeLists.txt | |
| parent | aebbac0c37a5447e6064afea4b9c80b331dce92c (diff) | |
Use manual checks instead of cmake_minimum_required to propagate policies.
Diffstat (limited to 'tdtl/CMakeLists.txt')
| -rw-r--r-- | tdtl/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tdtl/CMakeLists.txt b/tdtl/CMakeLists.txt index b0f83cd98..8b139ddc6 100644 --- a/tdtl/CMakeLists.txt +++ b/tdtl/CMakeLists.txt @@ -1,4 +1,6 @@ -cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) +if ((CMAKE_MAJOR_VERSION LESS 3) OR (CMAKE_VERSION VERSION_LESS "3.0.2")) + message(FATAL_ERROR "CMake >= 3.0.2 is required") +endif() #SOURCE SETS set(TDTL_SOURCE |
