Description: Bump cmake_minimum_required to 3.5 for CMake 4.x compatibility
 CMake 4.x has removed compatibility with CMake < 3.5, so declaring
 cmake_minimum_required(VERSION 3.0) makes configuration fail. The top-level
 project was handled via -DCMAKE_POLICY_VERSION_MINIMUM=3.5, but that cache
 variable is not propagated into the try_compile() sub-project (kloewe/cpuinfo)
 and is not reliable for add_subdirectory() projects (kloewe/dot). Bump all
 three cmake_minimum_required() calls to VERSION 3.5.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-01

--- connectome-workbench-2.0.1.orig/src/CMakeLists.txt
+++ connectome-workbench-2.0.1/src/CMakeLists.txt
@@ -1,7 +1,7 @@
 #
 # Minimum required version of CMAKE
 #
-CMAKE_MINIMUM_REQUIRED (VERSION 3.0)
+CMAKE_MINIMUM_REQUIRED (VERSION 3.5)
 
 #
 # Project name
--- connectome-workbench-2.0.1.orig/src/kloewe/cpuinfo/CMakeLists.txt
+++ connectome-workbench-2.0.1/src/kloewe/cpuinfo/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.5)
 
 project(cpuinfo)
 
--- connectome-workbench-2.0.1.orig/src/kloewe/dot/CMakeLists.txt
+++ connectome-workbench-2.0.1/src/kloewe/dot/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.5)
 
 project(dot)
 
