Skip to content

Commit d0aa73b

Browse files
authored
Update upper end of cmake_minimum_required range (#241)
* Update upper end of cmake_minimum_required range CMake 3.31 is dropping support for cmake_minimum_required for versions less than 3.10, but adding 3.25 (which is tested on math-ci) indicates that we test compatibility with 3.25, which causes those warnings to be suppressed. * Add CMake version 3.31.0 to testing * Change CMP0079 behaviour * Update upper end of range to latest version tested (3.31.0) * Update CMake versions in test.yml
1 parent 753c9cd commit d0aa73b

File tree

17 files changed

+19
-18
lines changed

17 files changed

+19
-18
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ jobs:
3535
- ubuntu-20.04
3636
- windows-2019
3737
cmake-version:
38-
- 3.20.0
39-
- 3.10.2
38+
- 3.31.0
39+
- 3.22.1
40+
- 3.16.3
4041
exclude:
4142
- platform: windows-2019
4243
cmake-version: 3.10.2

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2017 Advanced Micro Devices, Inc.
33
################################################################################
44

5-
cmake_minimum_required (VERSION 3.6)
5+
cmake_minimum_required (VERSION 3.6...3.31.0)
66

77
set(CMAKE_INSTALL_PREFIX "/opt/rocm" CACHE PATH "")
88

share/rocmcmakebuildtools/cmake/ROCMTest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ macro(rocm_enable_test_package NAME)
3131
endmacro()
3232

3333
if(POLICY CMP0079)
34-
cmake_policy(SET CMP0079 OLD)
34+
cmake_policy(SET CMP0079 NEW)
3535
endif()
3636

3737
add_library(rocm_test_dependencies INTERFACE)

test/analyze/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
################################################################################
44

55

6-
cmake_minimum_required (VERSION 3.5)
6+
cmake_minimum_required (VERSION 3.5...3.31.0)
77
project(simple LANGUAGES CXX)
88

99
find_package(ROCmCMakeBuildTools)

test/docsphinx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2023 Advanced Micro Devices, Inc.
33
################################################################################
44

5-
cmake_minimum_required (VERSION 3.5)
5+
cmake_minimum_required (VERSION 3.5...3.31.0)
66
project(useful LANGUAGES CXX)
77
# Ideally should be NONE, but GNUInstallDirs detects platform arch using try_compile
88
# https://stackoverflow.com/questions/43379311/why-does-project-affect-cmakes-opinion-on-cmake-sizeof-void-p

test/findpackagecheck/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cmake_minimum_required (VERSION 3.5)
2+
cmake_minimum_required (VERSION 3.5...3.31.0)
33
project(findpackagecheck CXX)
44

55
message(STATUS "PKG: ${PKG}")

test/libbasic/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
################################################################################
44

55

6-
cmake_minimum_required (VERSION 3.5)
6+
cmake_minimum_required (VERSION 3.5...3.31.0)
77
project(basic CXX)
88

99
find_package(ROCmCMakeBuildTools)

test/libheaderonly/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
################################################################################
44

55

6-
cmake_minimum_required (VERSION 3.5)
6+
cmake_minimum_required (VERSION 3.5...3.31.0)
77
project(headeronly LANGUAGES NONE)
88

99
find_package(ROCmCMakeBuildTools)

test/libprivate/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
################################################################################
44

55

6-
cmake_minimum_required (VERSION 3.5)
6+
cmake_minimum_required (VERSION 3.5...3.31.0)
77
project(libprivate CXX)
88

99
find_package(ROCmCMakeBuildTools)

test/libsimple/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
################################################################################
44

55

6-
cmake_minimum_required (VERSION 3.5)
6+
cmake_minimum_required (VERSION 3.5...3.31.0)
77
project(simple CXX)
88

99
find_package(ROCmCMakeBuildTools)

0 commit comments

Comments
 (0)