From 561c1386ee202311d4cd96aff1535f0057460fc4 Mon Sep 17 00:00:00 2001 From: Jackson Oursland Date: Tue, 8 Apr 2025 12:25:01 -0700 Subject: [PATCH 1/2] Revert "Build:add maximum cmake compatible version" This reverts commit 307a4661aff0974f90adbedae148543de85a463f. --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ddbb46ef63..abced4aca7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,6 @@ # As of February 2025 we require CMake 3.22.0 cmake_minimum_required(VERSION 3.22.0 FATAL_ERROR) -# Check for maximum version -if (CMAKE_VERSION VERSION_GREATER_EQUAL "4.0.0") - message(FATAL_ERROR "The required CMake version is before 4.0.0.") -endif() # As of cMake 3.27, find_package() will look for both case-sensitive and all-uppercase versions # of the package. This seems to affect FLANN as included by Pixi From be34ec2009654bc242b042c788496e543e981ca9 Mon Sep 17 00:00:00 2001 From: Jacob Oursland Date: Tue, 8 Apr 2025 13:24:58 -0700 Subject: [PATCH 2/2] CMake: Add CMAKE_POLICY_VERSION_MINIMUM=3.5 to CMakePresets.json --- CMakePresets.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index f5eadf1063..02c14d4ddc 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -13,6 +13,10 @@ "CMAKE_EXPORT_COMPILE_COMMANDS": { "type": "BOOL", "value": "ON" + }, + "CMAKE_POLICY_VERSION_MINIMUM": { + "type": "STRING", + "value": "3.5" } } },