diff options
author | Mark de Wever <koraq@xs4all.nl> | 2022-11-09 18:08:54 +0100 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2022-12-11 20:19:46 +0100 |
commit | d40dc417389e09b26dd4177f50a06cf9889caf2f (patch) | |
tree | d67302b1aded15192225887a62332fb9b373a2a7 /polly | |
parent | ba237cb26804a1759d647dc3623e3b0afcd2e25a (diff) | |
download | llvm-d40dc417389e09b26dd4177f50a06cf9889caf2f.zip llvm-d40dc417389e09b26dd4177f50a06cf9889caf2f.tar.gz llvm-d40dc417389e09b26dd4177f50a06cf9889caf2f.tar.bz2 |
[CMake] Warn when the version is older than 3.20.0.
This is a preparation to require CMake 3.20.0 after LLVM 16 has been
released.
This change has been discussed on discourse
https://discourse.llvm.org/t/rfc-upgrading-llvms-minimum-required-cmake-version/66193
Reviewed By: #libc_vendors, MaskRay, ChuanqiXu, to268, thieta, stellaraccident, ldionne, #libc, #libc_abi, phosek
Differential Revision: https://reviews.llvm.org/D137724
Diffstat (limited to 'polly')
-rw-r--r-- | polly/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt index aa992de..b81ce16 100644 --- a/polly/CMakeLists.txt +++ b/polly/CMakeLists.txt @@ -2,6 +2,13 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR) project(Polly) cmake_minimum_required(VERSION 3.13.4) + if ("${CMAKE_VERSION}" VERSION_LESS "3.20.0") + message(WARNING + "Your CMake version is ${CMAKE_VERSION}. Starting with LLVM 17.0.0, the " + "minimum version of CMake required to build LLVM will become 3.20.0, and " + "using an older CMake will become an error. Please upgrade your CMake to " + "at least 3.20.0 now to avoid issues in the future!") + endif() set(POLLY_STANDALONE_BUILD TRUE) endif() |