Skip to content

Comments

fix(build): build.ps1 CMake 缓存路径不匹配问题#47

Open
Thankyou-Cheems wants to merge 1 commit intoyuaotian:mainfrom
Thankyou-Cheems:fix/cmake-cache-mismatch
Open

fix(build): build.ps1 CMake 缓存路径不匹配问题#47
Thankyou-Cheems wants to merge 1 commit intoyuaotian:mainfrom
Thankyou-Cheems:fix/cmake-cache-mismatch

Conversation

@Thankyou-Cheems
Copy link
Contributor

解决了 CMake 缓存路径不匹配问题,
修复前的脚本不会根据不同用户的cmake目录自动调整导致无法构建

  • 在配置阶段检测 CMake 缓存/源码路径,若不匹配,清理后重试一次
  • 解决仓库迁移到新绝对路径后构建直接失败的问题

- Detect CMake cache/source path mismatch during configure and retry once after cleaning build directory
- Prevent build failure when repository is moved to a different absolute path
- Keep normal configure/build flow unchanged for clean workspaces

fix(build): 自动恢复 CMake 缓存路径不匹配问题

- 在配置阶段检测 CMake 缓存/源码路径不匹配并清理后重试一次
- 解决仓库迁移到新绝对路径后构建直接失败的问题
- 对干净工作区保持原有配置和编译流程不变
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant