Index: CMakeLists.txt =================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -1,6 +1,6 @@ # See docs/CMake.html for instructions about how to build LLVM with CMake. -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.5.0) if(POLICY CMP0068) cmake_policy(SET CMP0068 NEW) Index: docs/CMake.rst =================================================================== --- docs/CMake.rst +++ docs/CMake.rst @@ -34,7 +34,7 @@ We use here the command-line, non-interactive CMake interface. #. `Download `_ and install - CMake. Version 3.4.3 is the minimum required. + CMake. Version 3.5.0 is the minimum required. #. Open a shell. Your development tools must be reachable from this shell through the PATH environment variable. @@ -668,7 +668,7 @@ .. code-block:: cmake - cmake_minimum_required(VERSION 3.4.3) + cmake_minimum_required(VERSION 3.5.0) project(SimpleProject) find_package(LLVM REQUIRED CONFIG) Index: docs/CMakePrimer.rst =================================================================== --- docs/CMakePrimer.rst +++ docs/CMakePrimer.rst @@ -21,7 +21,7 @@ The official CMake language references is available in the cmake-language manpage and `cmake-language online documentation -`_. +`_. 10,000 ft View ============== @@ -210,7 +210,7 @@ .. note:: For the full documentation on the CMake if command go - `here `_. That resource is + `here `_. That resource is far more complete. In general CMake if blocks work the way you'd expect: @@ -357,7 +357,7 @@ arguments. CMake's official documentation for the module is in the ``cmake-modules`` manpage, and is also available at the `cmake-modules online documentation -`_. +`_. .. note:: As of CMake 3.5 the cmake_parse_arguments command has become a native command @@ -428,12 +428,12 @@ go into details about them because The CMake project has excellent documentation. To highlight a few useful functions see: -* `add_custom_command `_ -* `add_custom_target `_ -* `file `_ -* `list `_ -* `math `_ -* `string `_ +* `add_custom_command `_ +* `add_custom_target `_ +* `file `_ +* `list `_ +* `math `_ +* `string `_ The full documentation for CMake commands is in the ``cmake-commands`` manpage -and available on `CMake's website `_ +and available on `CMake's website `_ Index: docs/ReleaseNotes.rst =================================================================== --- docs/ReleaseNotes.rst +++ docs/ReleaseNotes.rst @@ -45,6 +45,8 @@ platform's libc) without specifying -ffreestanding may need to either pass -fno-builtin-bcmp, or provide a bcmp function. +* CMake minimal version is now 3.5.0 + .. NOTE If you would like to document a larger change, then you can add a subsection about it right here. You can copy the following boilerplate Index: runtimes/CMakeLists.txt =================================================================== --- runtimes/CMakeLists.txt +++ runtimes/CMakeLists.txt @@ -52,7 +52,7 @@ set_property(GLOBAL APPEND PROPERTY SUB_COMPONENTS ${name}) endfunction() - cmake_minimum_required(VERSION 3.4.3) + cmake_minimum_required(VERSION 3.5.0) project(Runtimes C CXX ASM) # Add the root project's CMake modules, and the LLVM build's modules to the