Skip to content

Commit

Permalink
[CMake] Bump required CMake version to 3.20.0 (#13664)
Browse files Browse the repository at this point in the history
LLVM requires CMake 3.20 and up, which is specified in all the "built
in" LLVM projects. This change bumps the DPCPP/SYCL specific projects to
match that version.
  • Loading branch information
RossBrunton authored May 7, 2024
1 parent 4d5c25c commit 4b952e6
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 17 deletions.
10 changes: 0 additions & 10 deletions llvm/lib/SYCLLowerIR/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
if(${CMAKE_VERSION} VERSION_LESS 3.14)
macro(FetchContent_MakeAvailable NAME)
FetchContent_GetProperties(${NAME})
if(NOT ${NAME}_POPULATED)
FetchContent_Populate(${NAME})
add_subdirectory(${${NAME}_SOURCE_DIR} ${${NAME}_BINARY_DIR})
endif()
endmacro()
endif()

# Lowering of SYCL ESIMD kernels depends on vc-intrinsics
# NOTE: could have been added earlier from llvm/projects
if (NOT TARGET LLVMGenXIntrinsics)
Expand Down
2 changes: 1 addition & 1 deletion opencl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.20.0)

include(FetchContent)

Expand Down
2 changes: 1 addition & 1 deletion opencl/opencl-aot/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.20.0)

set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Expand Down
2 changes: 1 addition & 1 deletion sycl-fusion/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
cmake_minimum_required(VERSION 3.20.0 FATAL_ERROR)

# Define a variable holding the root directory of the JIT compiler project
# for use in includes etc.
Expand Down
2 changes: 1 addition & 1 deletion sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.20.0)

project(sycl-solution)
# Requirements
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.20.0)

message("Configuring SYCL End-to-End Tests")

Expand Down
2 changes: 1 addition & 1 deletion xpti/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.20.0)

set(XPTI_VERSION 0.4.1)
project (xpti VERSION "${XPTI_VERSION}" LANGUAGES CXX)
Expand Down
2 changes: 1 addition & 1 deletion xptifw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.20.0)

set(XPTI_VERSION 0.6.0)

Expand Down

0 comments on commit 4b952e6

Please sign in to comment.