From 00e85b5ec131c0afe2f62b5763eb78b76a90864f Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Wed, 30 Jul 2025 18:27:37 -0400 Subject: [PATCH] Fix cmake 4.0 support Adding a policy_max version of 4.0 in cmake_minimum_required. This tells cmake that policy version up to 4.0 is supported without removing support for cmake <= 3.5. CMake policy 4.0 support is tested based on local testing and this version only needs to be updated when a version of cmake comes out that drop 4.0 policy support (likely 5.0). --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43786d4..77c112e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required( VERSION 3.0 ) +cmake_minimum_required( VERSION 3.0...4.0 ) project( cubature )