Skip to content

Commit e920682

Browse files
authored
Align CMake requirements with upstream. (#3928)
1 parent 8ef7eac commit e920682

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See docs/CMake.html for instructions about how to build LLVM with CMake.
22

3-
cmake_minimum_required(VERSION 3.14)
3+
cmake_minimum_required(VERSION 3.13.4)
44

55
# CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
66
# New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html

llvm/lib/SYCLLowerIR/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
if(${CMAKE_VERSION} VERSION_LESS 3.14)
2+
macro(FetchContent_MakeAvailable NAME)
3+
FetchContent_GetProperties(${NAME})
4+
if(NOT ${NAME}_POPULATED)
5+
FetchContent_Populate(${NAME})
6+
add_subdirectory(${${NAME}_SOURCE_DIR} ${${NAME}_BINARY_DIR})
7+
endif()
8+
endmacro()
9+
endif()
10+
111
# Lowering of SYCL ESIMD kernels depends on vc-intrinsics
212
# NOTE: could have been added earlier from llvm/projects
313
if (NOT TARGET LLVMGenXIntrinsics)

0 commit comments

Comments
 (0)