File tree Expand file tree Collapse file tree 38 files changed +58
-143
lines changed
tools/scan-build-py/tests/functional/exec
libomptarget/plugins/remote/src Expand file tree Collapse file tree 38 files changed +58
-143
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
include (CheckIncludeFiles )
3
3
include (GNUInstallDirs )
4
4
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
if (NOT DEFINED LLVM_COMMON_CMAKE_UTILS )
4
4
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
@@ -11,13 +11,6 @@ include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
11
11
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
12
12
project (Clang )
13
13
set (CLANG_BUILT_STANDALONE TRUE )
14
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
15
- message (WARNING
16
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
17
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
18
- "using an older CMake will become an error. Please upgrade your CMake to "
19
- "at least 3.20.0 now to avoid issues in the future!" )
20
- endif ()
21
14
endif ()
22
15
23
16
# Must go below project(..)
Original file line number Diff line number Diff line change 1
1
project (exec C )
2
2
3
- cmake_minimum_required (VERSION 3.13.4 )
3
+ cmake_minimum_required (VERSION 3.20.0 )
4
4
5
5
include (CheckCCompilerFlag )
6
6
check_c_compiler_flag ("-std=c99" C99_SUPPORTED )
Original file line number Diff line number Diff line change 1
1
# CMake policy settings shared between LLVM projects
2
2
3
+ # CMP0091: MSVC runtime library flags are selected by an abstraction.
4
+ # New in CMake 3.15. https://cmake.org/cmake/help/latest/policy/CMP0091.html
5
+ if (POLICY CMP0091 )
6
+ cmake_policy (SET CMP0091 OLD )
7
+ endif ()
3
8
# CMP0114: ExternalProject step targets fully adopt their steps.
4
9
# New in CMake 3.19: https://cmake.org/cmake/help/latest/policy/CMP0114.html
5
10
if (POLICY CMP0114 )
Original file line number Diff line number Diff line change 3
3
# An important constraint of the build is that it only produces libraries
4
4
# based on the ability of the host toolchain to target various platforms.
5
5
6
- cmake_minimum_required (VERSION 3.13.4 )
6
+ cmake_minimum_required (VERSION 3.20.0 )
7
+
8
+ set (LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR} /../cmake" )
9
+ include (${LLVM_COMMON_CMAKE_UTILS} /Modules/CMakePolicy.cmake
10
+ NO_POLICY_SCOPE )
7
11
8
12
# Check if compiler-rt is built as a standalone project.
9
13
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR COMPILER_RT_STANDALONE_BUILD )
10
14
project (CompilerRT C CXX ASM )
11
15
set (COMPILER_RT_STANDALONE_BUILD TRUE )
12
16
set_property (GLOBAL PROPERTY USE_FOLDERS ON )
13
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
14
- message (WARNING
15
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
16
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
17
- "using an older CMake will become an error. Please upgrade your CMake to "
18
- "at least 3.20.0 now to avoid issues in the future!" )
19
- endif ()
20
17
endif ()
21
18
22
- set (LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR} /../cmake" )
23
-
24
19
# Add path for custom compiler-rt modules.
25
20
list (INSERT CMAKE_MODULE_PATH 0
26
21
"${CMAKE_CURRENT_SOURCE_DIR} /cmake"
Original file line number Diff line number Diff line change 3
3
# architecture-specific code in various subdirectories.
4
4
5
5
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
6
- cmake_minimum_required (VERSION 3.13.4 )
7
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
8
- message (WARNING
9
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
10
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
11
- "using an older CMake will become an error. Please upgrade your CMake to "
12
- "at least 3.20.0 now to avoid issues in the future!" )
13
- endif ()
6
+ cmake_minimum_required (VERSION 3.20.0 )
14
7
15
8
set (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY )
16
9
project (CompilerRTBuiltins C ASM )
Original file line number Diff line number Diff line change 1
1
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
2
- cmake_minimum_required (VERSION 3.13.4 )
3
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
4
- message (WARNING
5
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
6
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
7
- "using an older CMake will become an error. Please upgrade your CMake to "
8
- "at least 3.20.0 now to avoid issues in the future!" )
9
- endif ()
2
+ cmake_minimum_required (VERSION 3.20.0 )
10
3
11
4
set (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY )
12
5
project (CompilerRTCRT C )
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
if (NOT DEFINED LLVM_COMMON_CMAKE_UTILS )
4
4
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
@@ -39,13 +39,6 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
39
39
message ("Building Flang as a standalone project." )
40
40
project (Flang )
41
41
set (FLANG_STANDALONE_BUILD ON )
42
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
43
- message (WARNING
44
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
45
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
46
- "using an older CMake will become an error. Please upgrade your CMake to "
47
- "at least 3.20.0 now to avoid issues in the future!" )
48
- endif ()
49
42
else ()
50
43
set (FLANG_STANDALONE_BUILD OFF )
51
44
endif ()
Original file line number Diff line number Diff line change 1
1
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
2
- cmake_minimum_required (VERSION 3.13.4 )
2
+ cmake_minimum_required (VERSION 3.20.0 )
3
3
4
4
project (FortranDecimal C CXX )
5
5
Original file line number Diff line number Diff line change 7
7
#===------------------------------------------------------------------------===#
8
8
9
9
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
10
- cmake_minimum_required (VERSION 3.13.4 )
11
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
12
- message (WARNING
13
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
14
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
15
- "using an older CMake will become an error. Please upgrade your CMake to "
16
- "at least 3.20.0 now to avoid issues in the future!" )
17
- endif ()
10
+ cmake_minimum_required (VERSION 3.20.0 )
18
11
19
12
project (FlangRuntime C CXX )
20
13
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
# Include LLVM's cmake policies.
4
4
if (NOT DEFINED LLVM_COMMON_CMAKE_UTILS )
Original file line number Diff line number Diff line change 1
1
project (hello_world )
2
- cmake_minimum_required (VERSION 3.13.4 )
2
+ cmake_minimum_required (VERSION 3.20.0 )
3
3
include (../examples.cmake )
4
4
5
5
add_example (
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
project ( libclc VERSION 0.2.0 LANGUAGES CXX C )
4
4
Original file line number Diff line number Diff line change 4
4
#===============================================================================
5
5
# Setup Project
6
6
#===============================================================================
7
- cmake_minimum_required (VERSION 3.13.4 )
7
+ cmake_minimum_required (VERSION 3.20.0 )
8
8
9
9
set (LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR} /../cmake" )
10
10
Original file line number Diff line number Diff line change 4
4
# Setup Project
5
5
#===============================================================================
6
6
7
- cmake_minimum_required (VERSION 3.13.4 )
7
+ cmake_minimum_required (VERSION 3.20.0 )
8
8
9
9
set (LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR} /../cmake" )
10
10
Original file line number Diff line number Diff line change 2
2
# Setup Project
3
3
#===============================================================================
4
4
5
- cmake_minimum_required (VERSION 3.13.4 )
5
+ cmake_minimum_required (VERSION 3.20.0 )
6
6
7
7
set (LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR} /../cmake" )
8
8
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ set(LIBUNWIND_ASM_SOURCES
30
30
# CMake doesn't work correctly with assembly on AIX. Workaround by compiling
31
31
# as C files as well.
32
32
if ((APPLE AND CMAKE_VERSION VERSION_LESS 3.19 ) OR
33
- (MINGW AND CMAKE_VERSION VERSION_LESS 3.17 ) OR
34
- (${CMAKE_SYSTEM_NAME} MATCHES "AIX" ))
33
+ (MINGW AND CMAKE_VERSION VERSION_LESS 3.17 ))
35
34
set_source_files_properties (${LIBUNWIND_ASM_SOURCES} PROPERTIES LANGUAGE C )
36
35
endif ()
37
36
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
if (NOT DEFINED LLVM_COMMON_CMAKE_UTILS )
4
4
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
@@ -11,13 +11,6 @@ include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
11
11
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
12
12
project (lld )
13
13
set (LLD_BUILT_STANDALONE TRUE )
14
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
15
- message (WARNING
16
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
17
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
18
- "using an older CMake will become an error. Please upgrade your CMake to "
19
- "at least 3.20.0 now to avoid issues in the future!" )
20
- endif ()
21
14
endif ()
22
15
23
16
# Must go below project(..)
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
if (NOT DEFINED LLVM_COMMON_CMAKE_UTILS )
4
4
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
@@ -19,13 +19,6 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
19
19
project (lldb )
20
20
set (LLDB_BUILT_STANDALONE TRUE )
21
21
set (LLVM_INCLUDE_TESTS ON CACHE INTERNAL "" )
22
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
23
- message (WARNING
24
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
25
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
26
- "using an older CMake will become an error. Please upgrade your CMake to "
27
- "at least 3.20.0 now to avoid issues in the future!" )
28
- endif ()
29
22
endif ()
30
23
31
24
# Must go below project(..)
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
project (Debugserver LANGUAGES C CXX ASM-ATT )
4
4
@@ -7,13 +7,6 @@ include(GNUInstallDirs)
7
7
8
8
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
9
9
set (LLDB_BUILT_STANDALONE TRUE )
10
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
11
- message (WARNING
12
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
13
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
14
- "using an older CMake will become an error. Please upgrade your CMake to "
15
- "at least 3.20.0 now to avoid issues in the future!" )
16
- endif ()
17
10
18
11
set (CMAKE_MODULE_PATH
19
12
${CMAKE_MODULE_PATH}
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
if (NOT IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR} /../libunwind" )
4
4
message (FATAL_ERROR "llvm-libgcc requires being built in a monorepo layout with libunwind available" )
Original file line number Diff line number Diff line change 1
1
# See docs/CMake.html for instructions about how to build LLVM with CMake.
2
2
3
- cmake_minimum_required (VERSION 3.13.4 )
4
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
5
- message (WARNING
6
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
7
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
8
- "using an older CMake will become an error. Please upgrade your CMake to "
9
- "at least 3.20.0 now to avoid issues in the future!" )
10
- endif ()
3
+ cmake_minimum_required (VERSION 3.20.0 )
11
4
12
5
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
13
6
include (${LLVM_COMMON_CMAKE_UTILS} /Modules/CMakePolicy.cmake
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Quick start
34
34
We use here the command-line, non-interactive CMake interface.
35
35
36
36
#. `Download <http://www.cmake.org/cmake/resources/software.html >`_ and install
37
- CMake. Version 3.13.4 is the minimum required.
37
+ CMake. Version 3.20.0 is the minimum required.
38
38
39
39
#. Open a shell. Your development tools must be reachable from this shell
40
40
through the PATH environment variable.
@@ -911,7 +911,7 @@ and uses them to build a simple application ``simple-tool``.
911
911
912
912
.. code-block :: cmake
913
913
914
- cmake_minimum_required(VERSION 3.13.4 )
914
+ cmake_minimum_required(VERSION 3.20.0 )
915
915
project(SimpleProject)
916
916
917
917
find_package(LLVM REQUIRED CONFIG)
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ uses the package and provides other details.
280
280
=========================================================== ============ ==========================================
281
281
Package Version Notes
282
282
=========================================================== ============ ==========================================
283
- `CMake <http://cmake.org/ >`__ >=3.13.4 Makefile/workspace generator
283
+ `CMake <http://cmake.org/ >`__ >=3.20.0 Makefile/workspace generator
284
284
`GCC <http://gcc.gnu.org/ >`_ >=7.1.0 C/C++ compiler\ :sup: `1`
285
285
`python <http://www.python.org/ >`_ >=3.6 Automated test suite\ :sup: `2`
286
286
`zlib <http://zlib.net >`_ >=1.2.3.4 Compression library\ :sup: `3`
Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ Non-comprehensive list of changes in this release
47
47
Update on required toolchains to build LLVM
48
48
-------------------------------------------
49
49
50
+ With LLVM 17.x we raised the version requirement of CMake used to build LLVM.
51
+ The new requirements are as follows:
52
+
53
+ * CMake >= 3.20.0
54
+
50
55
Changes to the LLVM IR
51
56
----------------------
52
57
Original file line number Diff line number Diff line change 1
1
# MLIR project.
2
- cmake_minimum_required (VERSION 3.13.4 )
2
+ cmake_minimum_required (VERSION 3.20.0 )
3
3
4
4
if (NOT DEFINED LLVM_COMMON_CMAKE_UTILS )
5
5
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
@@ -11,13 +11,6 @@ include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
11
11
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
12
12
project (mlir )
13
13
set (MLIR_STANDALONE_BUILD TRUE )
14
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
15
- message (WARNING
16
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
17
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
18
- "using an older CMake will become an error. Please upgrade your CMake to "
19
- "at least 3.20.0 now to avoid issues in the future!" )
20
- endif ()
21
14
endif ()
22
15
23
16
# Must go below project(..)
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
project (standalone-dialect LANGUAGES CXX C )
3
3
4
4
set (CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON )
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
3
3
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
4
4
@@ -11,14 +11,7 @@ list(INSERT CMAKE_MODULE_PATH 0
11
11
# llvm/runtimes/ will set OPENMP_STANDALONE_BUILD.
12
12
if (OPENMP_STANDALONE_BUILD OR "${CMAKE_SOURCE_DIR} " STREQUAL "${CMAKE_CURRENT_SOURCE_DIR} " )
13
13
set (OPENMP_STANDALONE_BUILD TRUE )
14
- project (openmp C CXX )
15
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
16
- message (WARNING
17
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
18
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
19
- "using an older CMake will become an error. Please upgrade your CMake to "
20
- "at least 3.20.0 now to avoid issues in the future!" )
21
- endif ()
14
+ project (openmp C CXX ASM )
22
15
endif ()
23
16
24
17
# Must go below project(..)
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.13.4 )
1
+ cmake_minimum_required (VERSION 3.20.0 )
2
2
project (DetectTestCompiler C CXX )
3
3
4
4
include (CheckCCompilerFlag )
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ require a few additions.
307
307
308
308
.. code-block :: cmake
309
309
310
- cmake_minimum_required(VERSION 3.13.4 )
310
+ cmake_minimum_required(VERSION 3.20.0 )
311
311
project(offloadTest VERSION 1.0 LANGUAGES CXX)
312
312
313
313
list(APPEND CMAKE_MODULE_PATH "${PATH_TO_OPENMP_INSTALL}/lib/cmake/openmp")
@@ -318,7 +318,7 @@ require a few additions.
318
318
target_link_libraries(offload PRIVATE OpenMPTarget::OpenMPTarget_NVPTX)
319
319
target_sources(offload PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/Main.cpp)
320
320
321
- Using this module requires at least CMake version 3.13.4 . Supported languages
321
+ Using this module requires at least CMake version 3.20.0 . Supported languages
322
322
are C and C++ with Fortran support planned in the future. Compiler support is
323
323
best for Clang but this module should work for other compiler vendors such as
324
324
IBM, GNU.
Original file line number Diff line number Diff line change 9
9
#
10
10
11
11
project (libompd )
12
- cmake_minimum_required (VERSION 3.13.4 )
12
+ cmake_minimum_required (VERSION 3.20.0 )
13
13
14
14
add_library (ompd SHARED TargetValue.cpp omp-debug.cpp omp-state.cpp omp-icv.cpp )
15
15
Original file line number Diff line number Diff line change 10
10
#
11
11
##===----------------------------------------------------------------------===##
12
12
13
- cmake_minimum_required (VERSION 3.13.4 )
13
+ cmake_minimum_required (VERSION 3.20.0 )
14
14
15
15
# Define the suffix for the runtime messaging dumps.
16
16
add_definitions (-DTARGET_NAME=RPC )
Original file line number Diff line number Diff line change @@ -133,8 +133,6 @@ libomp_get_asmflags(LIBOMP_CONFIGURED_ASMFLAGS)
133
133
# Set the compiler flags for each type of source
134
134
set_source_files_properties (${LIBOMP_CXXFILES} PROPERTIES COMPILE_FLAGS "${LIBOMP_CONFIGURED_CXXFLAGS} " )
135
135
set_source_files_properties (${LIBOMP_ASMFILES} ${LIBOMP_GNUASMFILES} PROPERTIES COMPILE_FLAGS "${LIBOMP_CONFIGURED_ASMFLAGS} " )
136
- # Let the compiler handle the GNU assembly files
137
- set_source_files_properties (${LIBOMP_GNUASMFILES} PROPERTIES LANGUAGE C )
138
136
139
137
# Remove any cmake-automatic linking of the standard C++ library.
140
138
# We neither need (nor want) the standard C++ library dependency even though we compile c++ files.
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ be used to override the standard flag searching for a given compiler.
79
79
# TODO: Test more compilers
80
80
81
81
cmake_policy (PUSH )
82
- cmake_policy (VERSION 3.13.4 )
82
+ cmake_policy (VERSION 3.20.0 )
83
83
84
84
find_package (OpenMP ${OpenMPTarget_FIND_VERSION} REQUIRED )
85
85
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ require a few additions.
26
26
27
27
.. code-block :: cmake
28
28
29
- cmake_minimum_required(VERSION 3.13.4 )
29
+ cmake_minimum_required(VERSION 3.20.0 )
30
30
project(offloadTest VERSION 1.0 LANGUAGES CXX)
31
31
32
32
list(APPEND CMAKE_MODULE_PATH "${PATH_TO_OPENMP_INSTALL}/lib/cmake/openmp")
@@ -37,7 +37,7 @@ require a few additions.
37
37
target_link_libraries(offload PRIVATE OpenMPTarget::OpenMPTarget_NVPTX)
38
38
target_sources(offload PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/Main.cpp)
39
39
40
- Using this module requires at least CMake version 3.13.4 . Supported languages
40
+ Using this module requires at least CMake version 3.20.0 . Supported languages
41
41
are C and C++ with Fortran support planned in the future. If your application
42
42
requires building for a specific device architecture you can set the
43
43
``OpenMPTarget_<device>_ARCH=<flag> `` variable. Compiler support is best for
Original file line number Diff line number Diff line change 1
1
# Check if this is a in tree build.
2
2
if (NOT DEFINED LLVM_MAIN_SRC_DIR )
3
3
project (Polly )
4
- cmake_minimum_required (VERSION 3.13.4 )
5
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
6
- message (WARNING
7
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
8
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
9
- "using an older CMake will become an error. Please upgrade your CMake to "
10
- "at least 3.20.0 now to avoid issues in the future!" )
11
- endif ()
4
+ cmake_minimum_required (VERSION 3.20.0 )
12
5
set (POLLY_STANDALONE_BUILD TRUE )
13
6
endif ()
14
7
Original file line number Diff line number Diff line change 5
5
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
#
7
7
#===----------------------------------------------------------------------===##
8
- cmake_minimum_required (VERSION 3.13.4 )
8
+ cmake_minimum_required (VERSION 3.20.0 )
9
9
10
10
set (PARALLELSTL_VERSION_FILE "${CMAKE_CURRENT_SOURCE_DIR} /include/pstl/internal/pstl_config.h" )
11
11
file (STRINGS "${PARALLELSTL_VERSION_FILE} " PARALLELSTL_VERSION_SOURCE REGEX "#define _PSTL_VERSION .*$" )
Original file line number Diff line number Diff line change 1
1
# This file handles building LLVM runtime sub-projects.
2
- cmake_minimum_required (VERSION 3.13.4 )
3
- if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
4
- message (WARNING
5
- "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
6
- "minimum version of CMake required to build LLVM will become 3.20.0, and "
7
- "using an older CMake will become an error. Please upgrade your CMake to "
8
- "at least 3.20.0 now to avoid issues in the future!" )
9
- endif ()
10
- project (Runtimes C CXX ASM )
2
+ cmake_minimum_required (VERSION 3.20.0 )
11
3
12
4
# Add path for custom and the LLVM build's modules to the CMake module path.
13
5
set (LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR} /../cmake" )
6
+ include (${LLVM_COMMON_CMAKE_UTILS} /Modules/CMakePolicy.cmake
7
+ NO_POLICY_SCOPE )
8
+
9
+ project (Runtimes C CXX ASM )
10
+
14
11
list (INSERT CMAKE_MODULE_PATH 0
15
12
"${CMAKE_CURRENT_SOURCE_DIR} /cmake"
16
13
"${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules"
You can’t perform that action at this time.
0 commit comments