From 93b4a6b7c0655733fe40cafaf24694ab343a0f5c Mon Sep 17 00:00:00 2001 From: Liu Zhangjian Date: Mon, 9 Feb 2026 16:37:43 +0800 Subject: [PATCH] chore: downgrade cmake minimum required version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lowered the minimum required CMake version from 3.18.0 to 3.13.0 in both the main CMakeLists.txt and core plugin CMakeLists.txt files. This change improves compatibility with older build environments and distributions that may not have the latest CMake versions available. The functionality remains unchanged as the project doesn't require features specific to CMake 3.18. Influence: 1. Verify project builds successfully with CMake 3.13.0 2. Test compilation on systems with older CMake versions 3. Ensure all existing build features work as before 4. Confirm no regression in build process or generated binaries chore: 降低 cmake 最低版本要求 将主 CMakeLists.txt 和核心插件 CMakeLists.txt 中的最低 CMake 版本要求从 3.18.0 降至 3.13.0。此更改提高了与旧版构建环境和发行版的兼容性,这些环境 可能没有最新的 CMake 版本。项目功能保持不变,因为不需要 CMake 3.18 的特 定功能。 Influence: 1. 验证项目在 CMake 3.13.0 下能成功构建 2. 在装有旧版 CMake 的系统上测试编译 3. 确保所有现有构建功能正常工作 4. 确认构建过程或生成的二进制文件没有回归 --- CMakeLists.txt | 4 ++-- src/plugins/core/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a2642b61..ea9a9eadc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18.0) +cmake_minimum_required(VERSION 3.13.0) project(deepin-unioncode) @@ -18,7 +18,7 @@ if (NOT VERSION) endif() message(STATUS "build version ${VERSION}") -option(ENABLE_SANITIZE_CHECK "Enable Sanitize Check " OFF) +option(ENABLE_SANITIZE_CHECK "Enable Sanitize Check " OFF) set(CMAKE_VERBOSE_MAKEFILE ON) diff --git a/src/plugins/core/CMakeLists.txt b/src/plugins/core/CMakeLists.txt index 3c4f08dbc..439248af0 100644 --- a/src/plugins/core/CMakeLists.txt +++ b/src/plugins/core/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.18) +cmake_minimum_required(VERSION 3.13.0) project(core)