This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGafa1afd4108d: [CMake] Bump CMake minimum version to 3.13.4 (authored by ldionne). Herald added subscribers: llvm-commits, msifontes, sstefan1, jurahul, stephenneuendorffer, aartbik. Herald added projects: MLIR, LLVM.
Changed prior to commit: https://reviews.llvm.org/D78648?vs=259300&id=279101#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D78648/new/ https://reviews.llvm.org/D78648 Files: clang/CMakeLists.txt clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt compiler-rt/CMakeLists.txt compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt compiler-rt/lib/builtins/CMakeLists.txt flang/CMakeLists.txt libclc/CMakeLists.txt libcxx/CMakeLists.txt libcxx/utils/ci/runtimes/CMakeLists.txt libcxxabi/CMakeLists.txt libunwind/CMakeLists.txt lld/CMakeLists.txt lldb/CMakeLists.txt lldb/tools/debugserver/CMakeLists.txt llvm/CMakeLists.txt llvm/docs/CMake.rst llvm/docs/CMakePrimer.rst llvm/docs/GettingStarted.rst llvm/runtimes/CMakeLists.txt llvm/utils/benchmark/CMakeLists.txt mlir/examples/standalone/CMakeLists.txt openmp/CMakeLists.txt openmp/cmake/DetectTestCompiler/CMakeLists.txt openmp/runtime/cmake/LibompCheckLinkerFlag.cmake parallel-libs/CMakeLists.txt parallel-libs/acxxel/CMakeLists.txt polly/CMakeLists.txt pstl/CMakeLists.txt
Index: pstl/CMakeLists.txt =================================================================== --- pstl/CMakeLists.txt +++ pstl/CMakeLists.txt @@ -5,7 +5,7 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===----------------------------------------------------------------------===## -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) set(PARALLELSTL_VERSION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/include/pstl/internal/pstl_config.h") file(STRINGS "${PARALLELSTL_VERSION_FILE}" PARALLELSTL_VERSION_SOURCE REGEX "#define _PSTL_VERSION .*$") Index: polly/CMakeLists.txt =================================================================== --- polly/CMakeLists.txt +++ polly/CMakeLists.txt @@ -1,7 +1,7 @@ # Check if this is a in tree build. if (NOT DEFINED LLVM_MAIN_SRC_DIR) project(Polly) - cmake_minimum_required(VERSION 3.4.3) + cmake_minimum_required(VERSION 3.13.4) # Where is LLVM installed? find_package(LLVM CONFIG REQUIRED) Index: parallel-libs/acxxel/CMakeLists.txt =================================================================== --- parallel-libs/acxxel/CMakeLists.txt +++ parallel-libs/acxxel/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.13.4) option(ACXXEL_ENABLE_UNIT_TESTS "enable acxxel unit tests" ON) option(ACXXEL_ENABLE_MULTI_DEVICE_UNIT_TESTS "enable acxxel multi-device unit tests" OFF) Index: parallel-libs/CMakeLists.txt =================================================================== --- parallel-libs/CMakeLists.txt +++ parallel-libs/CMakeLists.txt @@ -1 +1 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.13.4) Index: openmp/runtime/cmake/LibompCheckLinkerFlag.cmake =================================================================== --- openmp/runtime/cmake/LibompCheckLinkerFlag.cmake +++ openmp/runtime/cmake/LibompCheckLinkerFlag.cmake @@ -17,7 +17,7 @@ set(library_source "int foo(int a) { return a*a; }") set(cmake_source - "cmake_minimum_required(VERSION 2.8) + "cmake_minimum_required(VERSION 3.13.4) project(foo C) set(CMAKE_SHARED_LINKER_FLAGS \"${flag}\") add_library(foo SHARED src_to_link.c)") Index: openmp/cmake/DetectTestCompiler/CMakeLists.txt =================================================================== --- openmp/cmake/DetectTestCompiler/CMakeLists.txt +++ openmp/cmake/DetectTestCompiler/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.13.4) project(DetectTestCompiler C CXX) include(CheckCCompilerFlag) Index: openmp/CMakeLists.txt =================================================================== --- openmp/CMakeLists.txt +++ openmp/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.13.4) # Add cmake directory to search for custom cmake functions. set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) Index: mlir/examples/standalone/CMakeLists.txt =================================================================== --- mlir/examples/standalone/CMakeLists.txt +++ mlir/examples/standalone/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.13.4) if(POLICY CMP0068) cmake_policy(SET CMP0068 NEW) Index: llvm/utils/benchmark/CMakeLists.txt =================================================================== --- llvm/utils/benchmark/CMakeLists.txt +++ llvm/utils/benchmark/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 2.8.12) +cmake_minimum_required(VERSION 3.13.4) # Tell cmake 3.0+ that it's safe to clear the PROJECT_VERSION variable in the # call to project() below. Index: llvm/runtimes/CMakeLists.txt =================================================================== --- llvm/runtimes/CMakeLists.txt +++ llvm/runtimes/CMakeLists.txt @@ -7,7 +7,7 @@ # Setting CMake minimum required version should be at the very top of the file # if this is the entry point. if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) - cmake_minimum_required(VERSION 3.4.3) + cmake_minimum_required(VERSION 3.13.4) project(Runtimes C CXX ASM) endif() @@ -56,7 +56,7 @@ set_property(GLOBAL APPEND PROPERTY SUB_COMPONENTS ${name}) endfunction() - cmake_minimum_required(VERSION 3.4.3) + cmake_minimum_required(VERSION 3.13.4) project(Runtimes C CXX ASM) find_package(LLVM PATHS "${LLVM_BINARY_DIR}" NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) Index: llvm/docs/GettingStarted.rst =================================================================== --- llvm/docs/GettingStarted.rst +++ llvm/docs/GettingStarted.rst @@ -167,7 +167,7 @@ =========================================================== ============ ========================================== Package Version Notes =========================================================== ============ ========================================== -`CMake <http://cmake.org/>`__ >=3.4.3 Makefile/workspace generator +`CMake <http://cmake.org/>`__ >=3.13.4 Makefile/workspace generator `GCC <http://gcc.gnu.org/>`_ >=5.1.0 C/C++ compiler\ :sup:`1` `python <http://www.python.org/>`_ >=2.7 Automated test suite\ :sup:`2` `zlib <http://zlib.net>`_ >=1.2.3.4 Compression library\ :sup:`3` Index: llvm/docs/CMakePrimer.rst =================================================================== --- llvm/docs/CMakePrimer.rst +++ llvm/docs/CMakePrimer.rst @@ -54,7 +54,7 @@ .. code-block:: cmake - cmake_minimum_required(VERSION 3.2) + cmake_minimum_required(VERSION 3.15) project(HelloWorld) add_executable(HelloWorld HelloWorld.cpp) @@ -64,13 +64,13 @@ .. code-block:: cmake - cmake_minimum_required(VERSION 3.2) + cmake_minimum_required(VERSION 3.15) project(HelloWorld) add_executable(HelloWorld HelloWorld.cpp) if(APPLE) target_compile_definitions(HelloWorld PUBLIC APPLE) endif() - + Variables, Types, and Scope =========================== @@ -93,7 +93,7 @@ set(var_name var1) set(${var_name} foo) # same as "set(var1 foo)" set(${${var_name}}_var bar) # same as "set(foo_var bar)" - + Dereferencing an unset variable results in an empty expansion. It is a common pattern in CMake to conditionally set variables knowing that it will be used in code paths that the variable isn't set. There are examples of this throughout @@ -107,7 +107,7 @@ set(extra_sources Apple.cpp) endif() add_executable(HelloWorld HelloWorld.cpp ${extra_sources}) - + In this example the ``extra_sources`` variable is only defined if you're targeting an Apple platform. For all other targets the ``extra_sources`` will be evaluated as empty before add_executable is given its arguments. @@ -124,7 +124,7 @@ # Creates a list with members a, b, c, and d set(my_list a b c d) set(my_list "a;b;c;d") - + # Creates a string "a b c d" set(my_string "a b c d") @@ -141,7 +141,7 @@ set(a 1 2 3) set(b 4 5 6) set(c 7 8 9) - + With this layout you can iterate through the list of lists printing each value with the following code: @@ -152,7 +152,7 @@ message(${value}) endforeach() endforeach() - + You'll notice that the inner foreach loop's list is doubly dereferenced. This is because the first dereference turns ``list_name`` into the name of the sub-list (a, b, or c in the example), then the second dereference is to get the value of @@ -385,7 +385,7 @@ message("${var}") endforeach() endmacro() - + set(my_list a b c d) set(my_list_of_numbers 1 2 3 4) print_list(my_list_of_numbers) Index: llvm/docs/CMake.rst =================================================================== --- llvm/docs/CMake.rst +++ llvm/docs/CMake.rst @@ -34,7 +34,7 @@ We use here the command-line, non-interactive CMake interface. #. `Download <http://www.cmake.org/cmake/resources/software.html>`_ and install - CMake. Version 3.4.3 is the minimum required. + CMake. Version 3.13.4 is the minimum required. #. Open a shell. Your development tools must be reachable from this shell through the PATH environment variable. @@ -717,7 +717,7 @@ .. code-block:: cmake - cmake_minimum_required(VERSION 3.4.3) + cmake_minimum_required(VERSION 3.13.4) project(SimpleProject) find_package(LLVM REQUIRED CONFIG) Index: llvm/CMakeLists.txt =================================================================== --- llvm/CMakeLists.txt +++ llvm/CMakeLists.txt @@ -1,12 +1,6 @@ # See docs/CMake.html for instructions about how to build LLVM with CMake. -cmake_minimum_required(VERSION 3.4.3) - -if ("${CMAKE_VERSION}" VERSION_LESS "3.13.4") - message(FATAL_ERROR - "Your CMake version is ${CMAKE_VERSION}. The minimum version of CMake " - "required to build LLVM is now 3.13.4.") -endif() +cmake_minimum_required(VERSION 3.13.4) if(POLICY CMP0068) cmake_policy(SET CMP0068 NEW) Index: lldb/tools/debugserver/CMakeLists.txt =================================================================== --- lldb/tools/debugserver/CMakeLists.txt +++ lldb/tools/debugserver/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) project(Debugserver LANGUAGES C CXX ASM-ATT) Index: lldb/CMakeLists.txt =================================================================== --- lldb/CMakeLists.txt +++ lldb/CMakeLists.txt @@ -1,7 +1,4 @@ -cmake_minimum_required(VERSION 3.4.3) -if(CMAKE_SYSTEM_NAME STREQUAL Windows) - cmake_minimum_required(VERSION 3.13) -endif() +cmake_minimum_required(VERSION 3.13.4) if(POLICY CMP0075) cmake_policy(SET CMP0075 NEW) Index: lld/CMakeLists.txt =================================================================== --- lld/CMakeLists.txt +++ lld/CMakeLists.txt @@ -1,7 +1,7 @@ # Check if lld is built as a standalone project. if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) project(lld) - cmake_minimum_required(VERSION 3.4.3) + cmake_minimum_required(VERSION 3.13.4) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(LLD_BUILT_STANDALONE TRUE) Index: libunwind/CMakeLists.txt =================================================================== --- libunwind/CMakeLists.txt +++ libunwind/CMakeLists.txt @@ -2,7 +2,7 @@ # Setup Project #=============================================================================== -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) if (POLICY CMP0042) cmake_policy(SET CMP0042 NEW) # Set MACOSX_RPATH=YES by default Index: libcxxabi/CMakeLists.txt =================================================================== --- libcxxabi/CMakeLists.txt +++ libcxxabi/CMakeLists.txt @@ -8,7 +8,7 @@ # Setup Project #=============================================================================== -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) if(POLICY CMP0042) cmake_policy(SET CMP0042 NEW) # Set MACOSX_RPATH=YES by default Index: libcxx/utils/ci/runtimes/CMakeLists.txt =================================================================== --- libcxx/utils/ci/runtimes/CMakeLists.txt +++ libcxx/utils/ci/runtimes/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) if(POLICY CMP0068) cmake_policy(SET CMP0068 NEW) Index: libcxx/CMakeLists.txt =================================================================== --- libcxx/CMakeLists.txt +++ libcxx/CMakeLists.txt @@ -8,7 +8,7 @@ #=============================================================================== # Setup Project #=============================================================================== -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) if(POLICY CMP0042) cmake_policy(SET CMP0042 NEW) # Set MACOSX_RPATH=YES by default Index: libclc/CMakeLists.txt =================================================================== --- libclc/CMakeLists.txt +++ libclc/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required( VERSION 3.9.2 ) +cmake_minimum_required(VERSION 3.13.4) project( libclc VERSION 0.2.0 LANGUAGES CXX ) include( GNUInstallDirs ) Index: flang/CMakeLists.txt =================================================================== --- flang/CMakeLists.txt +++ flang/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.9.0) +cmake_minimum_required(VERSION 3.13.4) # RPATH settings on macOS do not affect INSTALL_NAME. if (POLICY CMP0068) Index: compiler-rt/lib/builtins/CMakeLists.txt =================================================================== --- compiler-rt/lib/builtins/CMakeLists.txt +++ compiler-rt/lib/builtins/CMakeLists.txt @@ -3,7 +3,7 @@ # architecture-specific code in various subdirectories. if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) - cmake_minimum_required(VERSION 3.4.3) + cmake_minimum_required(VERSION 3.13.4) project(CompilerRTBuiltins C ASM) set(COMPILER_RT_STANDALONE_BUILD TRUE) Index: compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt =================================================================== --- compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt +++ compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) project(custom-libcxx C CXX) # Build static libcxxabi. Index: compiler-rt/CMakeLists.txt =================================================================== --- compiler-rt/CMakeLists.txt +++ compiler-rt/CMakeLists.txt @@ -3,7 +3,7 @@ # An important constraint of the build is that it only produces libraries # based on the ability of the host toolchain to target various platforms. -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) if(POLICY CMP0075) cmake_policy(SET CMP0075 NEW) Index: clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt =================================================================== --- clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt +++ clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt @@ -1,6 +1,6 @@ project(exec C) -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) include(CheckCCompilerFlag) check_c_compiler_flag("-std=c99" C99_SUPPORTED) Index: clang/CMakeLists.txt =================================================================== --- clang/CMakeLists.txt +++ clang/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.4.3) +cmake_minimum_required(VERSION 3.13.4) if(POLICY CMP0075) cmake_policy(SET CMP0075 NEW)
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits