diff options
author | Mark de Wever <koraq@xs4all.nl> | 2023-03-04 18:28:13 +0100 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2023-03-04 18:28:13 +0100 |
commit | 92523a35a827539db8557bbc3ecab7f9ea3f6ade (patch) | |
tree | 12470d10badc36a0bedd848cbaf0f9c4dab66179 /llvm/CMakeLists.txt | |
parent | 2708869801ae00f4681f6b2d9d69b25b3fce26b6 (diff) | |
download | llvm-92523a35a827539db8557bbc3ecab7f9ea3f6ade.zip llvm-92523a35a827539db8557bbc3ecab7f9ea3f6ade.tar.gz llvm-92523a35a827539db8557bbc3ecab7f9ea3f6ade.tar.bz2 |
Revert "[CMake] Bumps minimum version to 3.20.0."
Some build bots have not been updated to the new minimal CMake version.
Reverting for now and ping the buildbot owners.
This reverts commit 44c6b905f8527635e49bb3ea97dea315f92d38ec.
Diffstat (limited to 'llvm/CMakeLists.txt')
-rw-r--r-- | llvm/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index bdaa6f8..c993ff5 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -1,6 +1,13 @@ # See docs/CMake.html for instructions about how to build LLVM with CMake. -cmake_minimum_required(VERSION 3.20.0) +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(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake |