Skip to content

Commit 1d3f61f

Browse files
committed
[CMake] Enforce the minimum CMake version to be at least 3.13.4
This commit changes the warning for CMake < 3.13.4 into a fatal error. The intent is to revert and re-apply this simple commit until all build bots are migrated to CMake >= 3.13.4. This is part of the effort discussed on llvm-dev here: http://lists.llvm.org/pipermail/llvm-dev/2020-April/140578.html Differential Revision: https://reviews.llvm.org/D78646
1 parent 0f03626 commit 1d3f61f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎llvm/CMakeLists.txt‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
cmake_minimum_required(VERSION 3.4.3)
44

55
if ("${CMAKE_VERSION}" VERSION_LESS "3.13.4")
6-
message(WARNING
7-
"Your CMake version is ${CMAKE_VERSION}. Starting with LLVM 12.0.0, the "
8-
"minimum version of CMake required to build LLVM will become 3.13.4, and "
9-
"using an older CMake will become an error. Please upgrade your CMake to "
10-
"at least 3.13.4 now to avoid issues in the future!")
6+
message(FATAL_ERROR
7+
"Your CMake version is ${CMAKE_VERSION}. The minimum version of CMake "
8+
"required to build LLVM is now 3.13.4.")
119
endif()
1210

1311
if(POLICY CMP0068)

0 commit comments

Comments
 (0)