344 lines
13 KiB
Diff
344 lines
13 KiB
Diff
|
|
From 17621e9cc5dea359fbf2aaa0e20e4f2a67d41fa6 Mon Sep 17 00:00:00 2001
|
||
|
|
From: liyunfei <liyunfei33@huawei.com>
|
||
|
|
Date: Thu, 6 Mar 2025 12:48:04 +0800
|
||
|
|
Subject: [PATCH] remove cmake_minimum_required
|
||
|
|
|
||
|
|
---
|
||
|
|
bolt/runtime/CMakeLists.txt | 2 +-
|
||
|
|
clang/CMakeLists.txt | 2 +-
|
||
|
|
clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt | 2 +-
|
||
|
|
compiler-rt/CMakeLists.txt | 2 +-
|
||
|
|
compiler-rt/lib/builtins/CMakeLists.txt | 2 +-
|
||
|
|
flang/CMakeLists.txt | 2 +-
|
||
|
|
flang/lib/Decimal/CMakeLists.txt | 2 +-
|
||
|
|
flang/runtime/CMakeLists.txt | 2 +-
|
||
|
|
libc/CMakeLists.txt | 2 +-
|
||
|
|
libc/examples/hello_world/CMakeLists.txt | 2 +-
|
||
|
|
libclc/CMakeLists.txt | 2 +-
|
||
|
|
libcxx/CMakeLists.txt | 2 +-
|
||
|
|
libcxxabi/CMakeLists.txt | 2 +-
|
||
|
|
libunwind/CMakeLists.txt | 2 +-
|
||
|
|
lld/CMakeLists.txt | 2 +-
|
||
|
|
lldb/CMakeLists.txt | 2 +-
|
||
|
|
lldb/tools/debugserver/CMakeLists.txt | 2 +-
|
||
|
|
llvm-libgcc/CMakeLists.txt | 2 +-
|
||
|
|
llvm/CMakeLists.txt | 2 +-
|
||
|
|
mlir/CMakeLists.txt | 2 +-
|
||
|
|
mlir/examples/standalone/CMakeLists.txt | 2 +-
|
||
|
|
openmp/CMakeLists.txt | 2 +-
|
||
|
|
openmp/cmake/DetectTestCompiler/CMakeLists.txt | 2 +-
|
||
|
|
openmp/libompd/src/CMakeLists.txt | 2 +-
|
||
|
|
polly/CMakeLists.txt | 2 +-
|
||
|
|
pstl/CMakeLists.txt | 2 +-
|
||
|
|
runtimes/CMakeLists.txt | 2 +-
|
||
|
|
27 files changed, 27 insertions(+), 27 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/bolt/runtime/CMakeLists.txt b/bolt/runtime/CMakeLists.txt
|
||
|
|
index 8472ce00b413..3ddfd2b1743b 100644
|
||
|
|
--- a/bolt/runtime/CMakeLists.txt
|
||
|
|
+++ b/bolt/runtime/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
include(CheckIncludeFiles)
|
||
|
|
include(GNUInstallDirs)
|
||
|
|
|
||
|
|
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
|
||
|
|
index 98fcb6ea1a07..18936e79a24c 100644
|
||
|
|
--- a/clang/CMakeLists.txt
|
||
|
|
+++ b/clang/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
||
|
|
diff --git a/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt b/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt
|
||
|
|
index 95c6fdb610e0..1d1d2a40050e 100644
|
||
|
|
--- a/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt
|
||
|
|
+++ b/clang/tools/scan-build-py/tests/functional/exec/CMakeLists.txt
|
||
|
|
@@ -1,6 +1,6 @@
|
||
|
|
project(exec C)
|
||
|
|
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
include(CheckCCompilerFlag)
|
||
|
|
check_c_compiler_flag("-std=c99" C99_SUPPORTED)
|
||
|
|
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
|
||
|
|
index cfa97023d281..5f20a92155e3 100644
|
||
|
|
--- a/compiler-rt/CMakeLists.txt
|
||
|
|
+++ b/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.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
|
||
|
|
include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
|
||
|
|
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
|
||
|
|
index d62fa0432e2a..1b5028472ddc 100644
|
||
|
|
--- a/compiler-rt/lib/builtins/CMakeLists.txt
|
||
|
|
+++ b/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.20.0)
|
||
|
|
+ cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
||
|
|
project(CompilerRTBuiltins C ASM)
|
||
|
|
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
|
||
|
|
index ac30da89995e..2b778265b432 100644
|
||
|
|
--- a/flang/CMakeLists.txt
|
||
|
|
+++ b/flang/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
||
|
|
diff --git a/flang/lib/Decimal/CMakeLists.txt b/flang/lib/Decimal/CMakeLists.txt
|
||
|
|
index 3116ff68ea26..319c75957e89 100644
|
||
|
|
--- a/flang/lib/Decimal/CMakeLists.txt
|
||
|
|
+++ b/flang/lib/Decimal/CMakeLists.txt
|
||
|
|
@@ -1,5 +1,5 @@
|
||
|
|
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||
|
|
- cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+ cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
project(FortranDecimal C CXX)
|
||
|
|
|
||
|
|
diff --git a/flang/runtime/CMakeLists.txt b/flang/runtime/CMakeLists.txt
|
||
|
|
index 5b23065a32d1..22ef3984110a 100644
|
||
|
|
--- a/flang/runtime/CMakeLists.txt
|
||
|
|
+++ b/flang/runtime/CMakeLists.txt
|
||
|
|
@@ -7,7 +7,7 @@
|
||
|
|
#===------------------------------------------------------------------------===#
|
||
|
|
|
||
|
|
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||
|
|
- cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+ cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
project(FlangRuntime C CXX)
|
||
|
|
|
||
|
|
diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
|
||
|
|
index 4be92ba1380c..9ac479b1c01d 100644
|
||
|
|
--- a/libc/CMakeLists.txt
|
||
|
|
+++ b/libc/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
# Include LLVM's cmake policies.
|
||
|
|
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
|
||
|
|
diff --git a/libc/examples/hello_world/CMakeLists.txt b/libc/examples/hello_world/CMakeLists.txt
|
||
|
|
index 1561cdc1c3bf..64062f522a11 100644
|
||
|
|
--- a/libc/examples/hello_world/CMakeLists.txt
|
||
|
|
+++ b/libc/examples/hello_world/CMakeLists.txt
|
||
|
|
@@ -1,5 +1,5 @@
|
||
|
|
project(hello_world)
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
include(../examples.cmake)
|
||
|
|
|
||
|
|
add_example(
|
||
|
|
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
|
||
|
|
index 9daef8265c16..2b4c32e235f6 100644
|
||
|
|
--- a/libclc/CMakeLists.txt
|
||
|
|
+++ b/libclc/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
project( libclc VERSION 0.2.0 LANGUAGES CXX C)
|
||
|
|
|
||
|
|
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
|
||
|
|
index b8ac536588d3..4d8ba59e9a14 100644
|
||
|
|
--- a/libcxx/CMakeLists.txt
|
||
|
|
+++ b/libcxx/CMakeLists.txt
|
||
|
|
@@ -4,7 +4,7 @@
|
||
|
|
#===============================================================================
|
||
|
|
# Setup Project
|
||
|
|
#===============================================================================
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
|
||
|
|
|
||
|
|
diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt
|
||
|
|
index f380fe6b6b92..12a8686fe429 100644
|
||
|
|
--- a/libcxxabi/CMakeLists.txt
|
||
|
|
+++ b/libcxxabi/CMakeLists.txt
|
||
|
|
@@ -4,7 +4,7 @@
|
||
|
|
# Setup Project
|
||
|
|
#===============================================================================
|
||
|
|
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
|
||
|
|
|
||
|
|
diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt
|
||
|
|
index bc2a820fe98e..ac5b67357152 100644
|
||
|
|
--- a/libunwind/CMakeLists.txt
|
||
|
|
+++ b/libunwind/CMakeLists.txt
|
||
|
|
@@ -2,7 +2,7 @@
|
||
|
|
# Setup Project
|
||
|
|
#===============================================================================
|
||
|
|
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
|
||
|
|
|
||
|
|
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt
|
||
|
|
index 595c286abd91..2ecd15275929 100644
|
||
|
|
--- a/lld/CMakeLists.txt
|
||
|
|
+++ b/lld/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
||
|
|
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt
|
||
|
|
index 4a53d7ef3d0d..c643ee9654f3 100644
|
||
|
|
--- a/lldb/CMakeLists.txt
|
||
|
|
+++ b/lldb/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
||
|
|
diff --git a/lldb/tools/debugserver/CMakeLists.txt b/lldb/tools/debugserver/CMakeLists.txt
|
||
|
|
index 74afea804598..9274870fe830 100644
|
||
|
|
--- a/lldb/tools/debugserver/CMakeLists.txt
|
||
|
|
+++ b/lldb/tools/debugserver/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
project(Debugserver LANGUAGES C CXX ASM-ATT)
|
||
|
|
|
||
|
|
diff --git a/llvm-libgcc/CMakeLists.txt b/llvm-libgcc/CMakeLists.txt
|
||
|
|
index de42d908c371..cd825172274b 100644
|
||
|
|
--- a/llvm-libgcc/CMakeLists.txt
|
||
|
|
+++ b/llvm-libgcc/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
if (NOT IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/../libunwind")
|
||
|
|
message(FATAL_ERROR "llvm-libgcc requires being built in a monorepo layout with libunwind available")
|
||
|
|
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
|
||
|
|
index b0afb47a7243..1885b9450ae5 100644
|
||
|
|
--- a/llvm/CMakeLists.txt
|
||
|
|
+++ b/llvm/CMakeLists.txt
|
||
|
|
@@ -1,6 +1,6 @@
|
||
|
|
# See docs/CMake.html for instructions about how to build LLVM with CMake.
|
||
|
|
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
||
|
|
include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
|
||
|
|
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
|
||
|
|
index c91e9cd93dc8..beacaf45721f 100644
|
||
|
|
--- a/mlir/CMakeLists.txt
|
||
|
|
+++ b/mlir/CMakeLists.txt
|
||
|
|
@@ -1,5 +1,5 @@
|
||
|
|
# MLIR project.
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
||
|
|
diff --git a/mlir/examples/standalone/CMakeLists.txt b/mlir/examples/standalone/CMakeLists.txt
|
||
|
|
index 038242ba1437..c143d373fa6b 100644
|
||
|
|
--- a/mlir/examples/standalone/CMakeLists.txt
|
||
|
|
+++ b/mlir/examples/standalone/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
project(standalone-dialect LANGUAGES CXX C)
|
||
|
|
|
||
|
|
set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON)
|
||
|
|
diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt
|
||
|
|
index c1efcaf80b54..e82b81aa3052 100644
|
||
|
|
--- a/openmp/CMakeLists.txt
|
||
|
|
+++ b/openmp/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
||
|
|
|
||
|
|
diff --git a/openmp/cmake/DetectTestCompiler/CMakeLists.txt b/openmp/cmake/DetectTestCompiler/CMakeLists.txt
|
||
|
|
index 8ea7ab8d45ba..56ffd3c51a7f 100644
|
||
|
|
--- a/openmp/cmake/DetectTestCompiler/CMakeLists.txt
|
||
|
|
+++ b/openmp/cmake/DetectTestCompiler/CMakeLists.txt
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
project(DetectTestCompiler C CXX)
|
||
|
|
|
||
|
|
include(CheckCCompilerFlag)
|
||
|
|
diff --git a/openmp/libompd/src/CMakeLists.txt b/openmp/libompd/src/CMakeLists.txt
|
||
|
|
index 0402a0177201..f9955c02b545 100644
|
||
|
|
--- a/openmp/libompd/src/CMakeLists.txt
|
||
|
|
+++ b/openmp/libompd/src/CMakeLists.txt
|
||
|
|
@@ -9,7 +9,7 @@
|
||
|
|
#
|
||
|
|
|
||
|
|
project (libompd)
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
add_library (ompd SHARED TargetValue.cpp omp-debug.cpp omp-state.cpp omp-icv.cpp)
|
||
|
|
|
||
|
|
diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt
|
||
|
|
index 5d0f2cd7f00e..28f7c580f6a4 100644
|
||
|
|
--- a/polly/CMakeLists.txt
|
||
|
|
+++ b/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.20.0)
|
||
|
|
+ cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
set(POLLY_STANDALONE_BUILD TRUE)
|
||
|
|
endif()
|
||
|
|
|
||
|
|
diff --git a/pstl/CMakeLists.txt b/pstl/CMakeLists.txt
|
||
|
|
index 255e22af9a26..1364d451224a 100644
|
||
|
|
--- a/pstl/CMakeLists.txt
|
||
|
|
+++ b/pstl/CMakeLists.txt
|
||
|
|
@@ -5,7 +5,7 @@
|
||
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||
|
|
#
|
||
|
|
#===----------------------------------------------------------------------===##
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
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 .*$")
|
||
|
|
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
|
||
|
|
index 599529852688..918e7a9c1c7e 100644
|
||
|
|
--- a/runtimes/CMakeLists.txt
|
||
|
|
+++ b/runtimes/CMakeLists.txt
|
||
|
|
@@ -1,5 +1,5 @@
|
||
|
|
# This file handles building LLVM runtime sub-projects.
|
||
|
|
-cmake_minimum_required(VERSION 3.20.0)
|
||
|
|
+cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
|
||
|
|
# Add path for custom and the LLVM build's modules to the CMake module path.
|
||
|
|
set(LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
|
||
|
|
--
|
||
|
|
2.42.0.windows.2
|
||
|
|
|