[llvm] 1d3f61f - [CMake] Enforce the minimum CMake version to be at least 3.13.4

Louis Dionne via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 07:49:35 PDT 2020


Author: Louis Dionne
Date: 2020-07-16T10:49:11-04:00
New Revision: 1d3f61f8a799489f7f4d81e46d9e6b31a954ea4e

URL: https://github.com/llvm/llvm-project/commit/1d3f61f8a799489f7f4d81e46d9e6b31a954ea4e
DIFF: https://github.com/llvm/llvm-project/commit/1d3f61f8a799489f7f4d81e46d9e6b31a954ea4e.diff

LOG: [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

Added: 
    

Modified: 
    llvm/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index d144266b20f0..303b39221d9e 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -3,11 +3,9 @@
 cmake_minimum_required(VERSION 3.4.3)
 
 if ("${CMAKE_VERSION}" VERSION_LESS "3.13.4")
-  message(WARNING
-    "Your CMake version is ${CMAKE_VERSION}. Starting with LLVM 12.0.0, the "
-    "minimum version of CMake required to build LLVM will become 3.13.4, and "
-    "using an older CMake will become an error. Please upgrade your CMake to "
-    "at least 3.13.4 now to avoid issues in the future!")
+  message(FATAL_ERROR
+    "Your CMake version is ${CMAKE_VERSION}. The minimum version of CMake "
+    "required to build LLVM is now 3.13.4.")
 endif()
 
 if(POLICY CMP0068)


        


More information about the llvm-commits mailing list