Skip to content

libpsl-native build fails with CMake 4.0 #103

Open
@sergiodj

Description

@sergiodj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions