Skip to content

Commit 8698bff

Browse files
committed
remove deprecated cmake versions
1 parent 6b0e5f9 commit 8698bff

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# SPDX-FileCopyrightText: 2023-2024 Jochem Rutgers
1+
# SPDX-FileCopyrightText: 2023-2025 Jochem Rutgers
22
#
33
# SPDX-License-Identifier: MIT
44

55
# This file only performs a few sanity checks on the repo. No building is required to use the
66
# cmake/*.cmake files.
77

8-
cmake_minimum_required(VERSION 3.5)
9-
cmake_policy(VERSION 3.5)
8+
cmake_minimum_required(VERSION 3.10)
9+
cmake_policy(VERSION 3.10)
1010

1111
project(cmake-sbom)
1212

cmake/version.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# SPDX-FileCopyrightText: 2023-2024 Jochem Rutgers
1+
# SPDX-FileCopyrightText: 2023-2025 Jochem Rutgers
22
#
33
# SPDX-License-Identifier: MIT
44

5-
cmake_minimum_required(VERSION 3.5)
5+
cmake_minimum_required(VERSION 3.10)
66

77
if(COMMAND version_generate)
88
version_extract()

example/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# SPDX-FileCopyrightText: 2023-2024 Jochem Rutgers
1+
# SPDX-FileCopyrightText: 2023-2025 Jochem Rutgers
22
#
33
# SPDX-License-Identifier: CC0-1.0
44

55
# ##################################################################################################
66
# Preamble
77

8-
cmake_minimum_required(VERSION 3.7.1)
9-
cmake_policy(VERSION 3.7.1)
8+
cmake_minimum_required(VERSION 3.10)
9+
cmake_policy(VERSION 3.10)
1010

1111
project(example-project)
1212

test/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2023-2024 Jochem Rutgers
1+
# SPDX-FileCopyrightText: 2023-2025 Jochem Rutgers
22
#
33
# SPDX-License-Identifier: MIT
44

@@ -18,8 +18,8 @@ function(test name)
1818
make_directory(${_dir}/build)
1919

2020
set(TEST_PREAMBLE
21-
"cmake_minimum_required(VERSION 3.5)
22-
cmake_policy(VERSION 3.5)
21+
"cmake_minimum_required(VERSION 3.10)
22+
cmake_policy(VERSION 3.10)
2323
project(${name})"
2424
)
2525

0 commit comments

Comments
 (0)