File tree Expand file tree Collapse file tree 15 files changed +109
-0
lines changed Expand file tree Collapse file tree 15 files changed +109
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ 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 ()
14
21
endif ()
15
22
16
23
# Must go below project(..)
Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR COMPILER_RT_STANDALONE
10
10
project (CompilerRT C CXX ASM )
11
11
set (COMPILER_RT_STANDALONE_BUILD TRUE )
12
12
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 ()
13
20
endif ()
14
21
15
22
set (LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR} /../cmake" )
Original file line number Diff line number Diff line change 4
4
5
5
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
6
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 ()
7
14
8
15
set (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY )
9
16
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
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 ()
3
10
4
11
set (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY )
5
12
project (CompilerRTCRT C )
Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
31
31
message ("Building Flang as a standalone project." )
32
32
project (Flang )
33
33
set (FLANG_STANDALONE_BUILD ON )
34
+ if ("${CMAKE_VERSION} " VERSION_LESS "3.20.0" )
35
+ message (WARNING
36
+ "Your CMake version is ${CMAKE_VERSION} . Starting with LLVM 17.0.0, the "
37
+ "minimum version of CMake required to build LLVM will become 3.20.0, and "
38
+ "using an older CMake will become an error. Please upgrade your CMake to "
39
+ "at least 3.20.0 now to avoid issues in the future!" )
40
+ endif ()
34
41
else ()
35
42
set (FLANG_STANDALONE_BUILD OFF )
36
43
endif ()
Original file line number Diff line number Diff line change 8
8
9
9
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
10
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 ()
11
18
12
19
project (FlangRuntime C CXX )
13
20
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ 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 ()
14
21
endif ()
15
22
16
23
# Must go below project(..)
Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ 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 ()
22
29
endif ()
23
30
24
31
# Must go below project(..)
Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ 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 ()
10
17
11
18
set (CMAKE_MODULE_PATH
12
19
${CMAKE_MODULE_PATH}
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
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 ()
4
11
5
12
set (LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR} /../cmake )
6
13
include (${LLVM_COMMON_CMAKE_UTILS} /Modules/CMakePolicy.cmake
You can’t perform that action at this time.
0 commit comments