Skip to content

Commit b4ecad3

Browse files
committed
Raise minimum CMake version to 3.10
For compatibility with CMake 4.0, which also removes CMP0043 OLD - there are no uses of COMPILE_DEFINITIONS_<CONFIG>. Signed-off-by: Chris Mayo <[email protected]>
1 parent 6adbbc8 commit b4ecad3

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

external/SPIRV-Tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
#============================ end_copyright_notice =============================
88

9-
cmake_minimum_required(VERSION 2.8.12)
9+
cmake_minimum_required(VERSION 3.10)
1010

1111
message(STATUS "============================ SPIRV-Tools project ============================")
1212

visa/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,7 @@ if (WIN32 OR UNIX)
7474
add_subdirectory(iga/IGAExe)
7575
endif (WIN32 OR UNIX)
7676

77-
if(WIN32)
78-
cmake_minimum_required(VERSION 3.1)
79-
cmake_policy(SET CMP0043 OLD)
80-
else()
81-
cmake_minimum_required(VERSION 2.8.12)
82-
endif(WIN32)
77+
cmake_minimum_required(VERSION 3.10)
8378

8479
# In the case where this is the IGC build we need to add a dummy custom target check_headers
8580
add_custom_target(check_headers)

visa/iga/GEDLibrary/GED_external/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
#============================ end_copyright_notice =============================
88

99
# GEDLibrary/GED
10-
if(WIN32)
11-
cmake_minimum_required(VERSION 3.1)
12-
else()
13-
cmake_minimum_required(VERSION 2.8.12)
14-
endif(WIN32)
10+
cmake_minimum_required(VERSION 3.10)
1511

1612
project(GEDLibrary)
1713

0 commit comments

Comments
 (0)