(no commit message)
[lldb-experimental.git] / cmake-old1.patch
1 commit 1d3f61f8a799489f7f4d81e46d9e6b31a954ea4e
2 Author: Louis Dionne <ldionne@apple.com>
3 Date:   Wed Apr 22 11:16:27 2020 -0400
4
5     [CMake] Enforce the minimum CMake version to be at least 3.13.4
6     
7     This commit changes the warning for CMake < 3.13.4 into a fatal error.
8     The intent is to revert and re-apply this simple commit until all build
9     bots are migrated to CMake >= 3.13.4.
10     
11     This is part of the effort discussed on llvm-dev here:
12     
13             http://lists.llvm.org/pipermail/llvm-dev/2020-April/140578.html
14     
15     Differential Revision: https://reviews.llvm.org/D78646
16
17 diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
18 index d144266b20f..303b39221d9 100644
19 --- a/llvm/CMakeLists.txt
20 +++ b/llvm/CMakeLists.txt
21 @@ -3,11 +3,9 @@
22  cmake_minimum_required(VERSION 3.4.3)
23  
24  if ("${CMAKE_VERSION}" VERSION_LESS "3.13.4")
25 -  message(WARNING
26 -    "Your CMake version is ${CMAKE_VERSION}. Starting with LLVM 12.0.0, the "
27 -    "minimum version of CMake required to build LLVM will become 3.13.4, and "
28 -    "using an older CMake will become an error. Please upgrade your CMake to "
29 -    "at least 3.13.4 now to avoid issues in the future!")
30 +  message(FATAL_ERROR
31 +    "Your CMake version is ${CMAKE_VERSION}. The minimum version of CMake "
32 +    "required to build LLVM is now 3.13.4.")
33  endif()
34  
35  if(POLICY CMP0068)