chore: eliminate CMake configuration warnings#1243
Conversation
The changes address CMake configuration warnings by: 1. Setting QTP0001 policy to NEW globally in the main CMakeLists.txt instead of setting it to OLD in individual modules 2. Adding POST_BUILD to custom command in packaging macro to ensure proper build timing 3. Removing redundant find_package calls for DdeControlCenter that were unnecessary 4. Removing duplicate QTP0001 policy settings from dock and tray modules These changes eliminate build warnings while maintaining the same functionality, making the build output cleaner and more professional. Influence: 1. Verify that the project builds without CMake warnings 2. Test that all modules still compile correctly 3. Ensure packaging functionality works as expected 4. Confirm that QML modules are properly generated 5. Test dock and tray functionality remains unchanged chore: 消除CMake配置警告 本次修改解决了CMake配置警告问题: 1. 在主CMakeLists.txt中全局设置QTP0001策略为NEW,而不是在各个模块中设置 为OLD 2. 在打包宏中添加POST_BUILD到自定义命令,确保正确的构建时机 3. 移除对DdeControlCenter的冗余find_package调用 4. 从dock和tray模块中移除重复的QTP0001策略设置 这些更改在保持相同功能的同时消除了构建警告,使构建输出更加清晰和专业。 Influence: 1. 验证项目构建时没有CMake警告 2. 测试所有模块仍能正确编译 3. 确保打包功能正常工作 4. 确认QML模块正确生成 5. 测试dock和tray功能保持不变
Reviewer's guide (collapsed on small PRs)Reviewer's GuideConsolidates Qt policy settings and refines CMake commands to suppress configuration warnings while preserving existing build behavior and packaging workflows. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto reviewGit Diff 代码审查报告总体评价这次提交主要涉及 CMake 构建系统的修改,包括添加了 Qt 策略设置、修改了构建命令以及移除了不必要的依赖和策略设置。整体来看,这些修改是为了改进构建系统的稳定性和正确性。 详细分析1. CMakeLists.txt 修改+qt_policy(SET QTP0001 NEW)
2. DDEShellPackageMacros.cmake 修改- add_custom_command(TARGET ${_config_PACKAGE}_package
+ add_custom_command(TARGET ${_config_PACKAGE}_package POST_BUILD
3. panels/dock/CMakeLists.txt 修改- find_package(DdeControlCenter)
- qt_policy(SET QTP0001 OLD)
4. panels/dock/tray/CMakeLists.txt 修改- qt_policy(SET QTP0001 OLD)
改进建议
总结这次修改整体上是积极的,主要是清理和改进了构建系统。建议在合并前进行完整的构建测试,确保所有模块都能正确构建和运行。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
The changes address CMake configuration warnings by:
instead of setting it to OLD in individual modules
proper build timing
unnecessary
These changes eliminate build warnings while maintaining the same
functionality, making the build output cleaner and more professional.
Influence:
chore: 消除CMake配置警告
本次修改解决了CMake配置警告问题:
为OLD
这些更改在保持相同功能的同时消除了构建警告,使构建输出更加清晰和专业。
Influence:
Summary by Sourcery
Eliminate CMake configuration warnings by centralizing the QTP0001 policy, cleaning up redundant package calls, and refining the packaging timing in the build system
Build: