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