Skip to content

Set the minimum CMake version to 3.5#125

Closed
Saur2000 wants to merge 1 commit intomapbox:masterfrom
Saur2000:master
Closed

Set the minimum CMake version to 3.5#125
Saur2000 wants to merge 1 commit intomapbox:masterfrom
Saur2000:master

Conversation

@Saur2000
Copy link

This avoids the following error with CMake 4:

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

This avoids the following error with CMake 4:

  CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 has been removed from CMake.

    Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    to tell CMake that the project requires at least <min> but has been updated
    to work with policies introduced by <max> or earlier.

    Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
@mourner
Copy link
Member

mourner commented Sep 18, 2025

Thanks for the PR! Superceded by #128

@mourner mourner closed this Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants