diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -2,6 +2,15 @@ cmake_minimum_required(VERSION 3.4.3) +if ("${CMAKE_VERSION}" VERSION_LESS "3.13.4") + message(WARNING + "The current CMake version is ${CMAKE_VERSION}. As soon as the release " + "branch for LLVM 11.0.0 is created, 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!") +endif() + if(POLICY CMP0068) cmake_policy(SET CMP0068 NEW) set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON)