Commit d1b1eab
committed
chore: eliminate CMake configuration warnings
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功能保持不变1 parent 6ce1b07 commit d1b1eab
4 files changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
| |||
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | | - | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
0 commit comments