Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit 689adc9

Browse files
Support CMake 24 and 25
Neither version removed any features or introduced any policies that are needed for this project: - Version 24: https://cmake.org/cmake/help/latest/release/3.24.html - Version 25: https://cmake.org/cmake/help/latest/release/3.25.html
1 parent fd620a5 commit 689adc9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16...3.23)
1+
cmake_minimum_required(VERSION 3.16...3.25)
22

33
# Not ideal to use this global variable, but necessary to make sure
44
# that tooling and projects use the same version
@@ -20,6 +20,11 @@ set(ENABLE_DEVELOPER_MODE
2020
# Change this to false if you want to disable warnings_as_errors in developer mode
2121
set(OPT_WARNINGS_AS_ERRORS_DEVELOPER_DEFAULT TRUE)
2222

23+
# fix DOWNLOAD_EXTRACT_TIMESTAMP warning in FetchContent
24+
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
25+
cmake_policy(SET CMP0135 NEW)
26+
endif()
27+
2328
# Add project_options v0.20.0
2429
# https://github.com/cpp-best-practices/project_options
2530
include(FetchContent)

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.15...3.23)
1+
cmake_minimum_required(VERSION 3.16...3.25)
22

33
project(CmakeConfigPackageTests LANGUAGES CXX)
44

0 commit comments

Comments
 (0)