PowerShell / PowerShell/PowerShell-Native
libpsl-native build fails with CMake 4.0
未关闭
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 68
- 派生
- 46
- 平均合并
- 3 天 4 小时
- 30 天内合并 PR
- 1
描述
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
Hi,
I'm building libpsl-native using CMake 4.0 and it's currently failing with:
2025/06/25 04:26:24 WARN CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
2025/06/25 04:26:24 WARN Compatibility with CMake < 3.5 has been removed from CMake.
2025/06/25 04:26:24 WARN
2025/06/25 04:26:24 WARN Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
2025/06/25 04:26:24 WARN to tell CMake that the project requires at least <min> but has been updated
2025/06/25 04:26:24 WARN to work with policies introduced by <max> or earlier.
2025/06/25 04:26:24 WARN
2025/06/25 04:26:24 WARN Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
This removal has been documented in CMake 4.0's release notes.
Thanks.
Expected behavior
Build passes.
Actual behavior
Build fails.
Error details
Environment data
GNU/Linux system
CMake 4.0
Version
7.4.0
Visuals
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 CMakeLists.txt:1 开始,在 GNU/Linux 上使用 CMake 4.0 重现配置失败。更新项目配置以适配受支持的 CMake 兼容性,然后验证 libpsl-native 的构建能够通过 CMake 4.0。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cmake, cpp
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100