Commit 5809ac2
chore: update cmake minimum version to 3.23
Updated the CMake minimum required version from 3.18 to 3.23 in the
DDE Control Center plugin macros. This change was necessary because the
qt_add_qml_module function used in the build process requires features
available in CMake 3.23 or later. Also added cmake_policy(SET CMP0071
NEW) to ensure proper handling of imported targets.
The update ensures compatibility with Qt's QML module system and
provides better support for modern CMake features. The previous minimum
version 3.18 was insufficient for the advanced QML module functionality
being utilized.
Influence:
1. Verify CMake configuration succeeds with version 3.23+
2. Test plugin builds with updated CMake requirements
3. Check that qt_add_qml_module functions correctly
4. Validate that CMP0071 policy setting doesn't break existing builds
5. Test with both older and newer CMake versions to ensure compatibility
chore: 更新 CMake 最低版本要求至 3.23
更新了 DDE 控制中心插件宏中的 CMake 最低版本要求,从 3.18 提升到 3.23。
此变更是必要的,因为构建过程中使用的 qt_add_qml_module 函数需要 CMake
3.23 或更高版本提供的功能。同时添加了 cmake_policy(SET CMP0071 NEW) 以确
保正确处理导入的目标。
此次更新确保与 Qt 的 QML 模块系统兼容,并为现代 CMake 功能提供更好支持。
之前的最低版本 3.18 无法满足正在使用的先进 QML 模块功能需求。
Influence:
1. 验证 CMake 配置在 3.23+ 版本下成功运行
2. 测试插件在更新后的 CMake 要求下正常构建
3. 检查 qt_add_qml_module 函数是否正确工作
4. 验证 CMP0071 策略设置不会破坏现有构建
5. 测试新旧 CMake 版本的兼容性1 parent e24192d commit 5809ac2
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
0 commit comments