PowerShell / PowerShell/PowerShell-Native
libpsl-native build fails with CMake 4.0
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 68
- Forks
- 46
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at CMakeLists.txt:1 and reproduce the configuration failure with CMake 4.0 on GNU/Linux. Update the project configuration for the supported CMake compatibility, then verify that the libpsl-native build passes with CMake 4.0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100