diff --git a/CMakeLists.txt b/CMakeLists.txt index 529c18fd2ed..46ca94423b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # See docs/CMake.html for instructions about how to build LLVM with CMake. -cmake_minimum_required(VERSION 2.8.12.2) +cmake_minimum_required(VERSION 3.4.3) if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) message(STATUS "No build type selected, default to Debug") diff --git a/docs/CMake.rst b/docs/CMake.rst index 7f4fcdcb38b..c8c77f20c29 100644 --- a/docs/CMake.rst +++ b/docs/CMake.rst @@ -561,7 +561,7 @@ and uses them to build a simple application ``simple-tool``. .. code-block:: cmake - cmake_minimum_required(VERSION 2.8.8) + cmake_minimum_required(VERSION 3.4.3) project(SimpleProject) find_package(LLVM REQUIRED CONFIG) diff --git a/docs/GettingStarted.rst b/docs/GettingStarted.rst index 1fef8663c90..54240b92b6a 100644 --- a/docs/GettingStarted.rst +++ b/docs/GettingStarted.rst @@ -83,9 +83,11 @@ Here's the short story for getting up and running quickly with LLVM: before trying to configure with cmake. cmake does not pickup newly added source directories in incremental builds. - The build uses `CMake `_. - Although the build is known to work with CMake >= 2.8.8, we recommend CMake - >= v3.2, especially if you're generating Ninja build files. + The build uses `CMake `_. LLVM requires CMake 3.4.3 to build. It + is generally recommended to use a recent CMake, especially if you're + generating Ninja build files. This is because the CMake project is constantly + improving the quality of the generators, and the Ninja generator gets a lot + of attention. * ``cd where you want to build llvm`` * ``mkdir build``