From 8cbee7f4b76903ea37c3f5e33959b2b22d92b8aa Mon Sep 17 00:00:00 2001 From: Nawid3333 <102778966+Nawid3333@users.noreply.github.com> Date: Sat, 3 Oct 2026 15:24:03 +0200 Subject: [PATCH] cmake: raise the bundled-dependency policy floor to 3.10 (#975) CMake 4 warns "Compatibility with CMake < 3.10 will be removed" for every fetched project that declares an older minimum. zydis and its bundled zycore both declare cmake_minimum_required(VERSION 3.9), so each configure prints two deprecation warnings. The existing floor of 3.5 does not lift them past the threshold; 3.10 does. Existing build directories keep the cached 3.5 until reconfigured with -U CMAKE_POLICY_VERSION_MINIMUM or a fresh cache. Tested on Windows 11, clang-cl 19.1.5, CMake 4.4.3: configure prints 0 deprecation warnings (2 with the old floor); virtual_memory_allocation_tests builds and links zydis/xbyak; ctest guest_red_zone_patcher passes. Co-authored-by: Claude Opus 5.5 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 799099f8..0c9fe9ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.18...4.3) if(CMAKE_VERSION VERSION_GREATER_EQUAL 4.0) - set(CMAKE_POLICY_VERSION_MINIMUM 3.5 CACHE STRING "Minimum policy version for bundled dependencies") + set(CMAKE_POLICY_VERSION_MINIMUM 3.10 CACHE STRING "Minimum policy version for bundled dependencies") endif() get_property(KYTY_GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)