PowerShell-Native icon indicating copy to clipboard operation
PowerShell-Native copied to clipboard

libpsl-native build fails with CMake 4.0

Open sergiodj opened this issue 7 months ago • 0 comments

Prerequisites

  • [x] Write a descriptive title.
  • [x] Make sure you are able to repro it on the latest version
  • [x] 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

sergiodj avatar Jun 25 '25 20:06 sergiodj