Skip to content

CMake 4 compatibility#45

Open
carlwgeorge wants to merge 1 commit intoaguinet:masterfrom
carlwgeorge:cmake4
Open

CMake 4 compatibility#45
carlwgeorge wants to merge 1 commit intoaguinet:masterfrom
carlwgeorge:cmake4

Conversation

@carlwgeorge
Copy link
Contributor

CMake 4 drops compatibility with CMake older than 3.5, and now returns this error:

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.

To allow building with CMake 2.8 through 4, update cmake_minimum_required to the min...max syntax.

https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features
https://fedoraproject.org/wiki/Changes/CMake4.0#Migration

CMake 4 drops compatibility with CMake older than 3.5, and now returns
this error:

    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.

To allow building with CMake 2.8 through 4, update
cmake_minimum_required to the min...max syntax.

https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features
https://fedoraproject.org/wiki/Changes/CMake4.0#Migration
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.

1 participant