已开启
[sync] PR-4: Adapt to CMake 4: bump cmake_minimum_required from 3.1.0 to 3.5 #5
openeuler-ci-bot创建于 8月20日
[sync] PR-4: Adapt to CMake 4: bump cmake_minimum_required from 3.1.0 to 3.5 #5
已开启
openeuler-ci-bot创建于 8月20日
共 2 个文件变更+14-2
@@ -0,0 +1,8 @@
1+--- kylin-device-daemon-3.20.0.5/CMakeLists.txt 2024-05-06 15:55:16.000000000 +0800
2++++ kylin-device-daemon-3.20.0.5/CMakeLists.txt 2026-08-20 15:48:13.568697114 +0800
3+@@ -1,4 +1,4 @@
4+-cmake_minimum_required(VERSION 3.1.0)
5++cmake_minimum_required(VERSION 3.5)
6+
7+ project(kylin-device-daemon)
8+
@@ -1,11 +1,12 @@
1Name: kylin-device-daemon 1Name: kylin-device-daemon
2Version: 3.20.0.52Version: 3.20.0.5
3-Release: 23+Release: 3
4Summary: kylin device daemon4Summary: kylin device daemon
5License: LGPL-2.0-or-later and GPL-2.0-or-later and BSD5License: LGPL-2.0-or-later and GPL-2.0-or-later and BSD
6URL: https://github.com/ukui/kylin-device-daemon6URL: https://github.com/ukui/kylin-device-daemon
7Source0: %{name}-%{version}.tar.gz7Source0: %{name}-%{version}.tar.gz
8 8 
9+Patch0: kylin-device-daemon-3.20.0.5-cmake-min-version-3.5.patch
9 10 
10BuildRequires: cmake11BuildRequires: cmake
11BuildRequires: glib2-devel >= 2.3612BuildRequires: glib2-devel >= 2.36
@@ -27,7 +28,7 @@ BuildRequires: qt5-qttools-devel
27%autosetup -n %{name}-%{version} -p128%autosetup -n %{name}-%{version} -p1
28 29 
29%build30%build
30-%cmake3 .31+%cmake
31%cmake_build32%cmake_build
32 33 
33%install34%install
@@ -54,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT
54 55 
55 56 
56%changelog57%changelog
58+* Thu Aug 20 2026 peijiankang <peijiankang@kylinos.cn> - 3.20.0.5-3
59+- Adapt to CMake 4: bump cmake_minimum_required from 3.1.0 to 3.5
60+ 
57* Thu Sep 11 2025 peijiankang <peijiankang@kylinos.cn> - 3.20.0.5-261* Thu Sep 11 2025 peijiankang <peijiankang@kylinos.cn> - 3.20.0.5-2
58- fix build error62- fix build error
59 63