PowerShell / PowerShell/PowerShell-Native

libpsl-native build fails with CMake 4.0

未關閉
#103 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。