Skip to content

Conversation

@Erwsaym
Copy link
Contributor

@Erwsaym Erwsaym commented Aug 23, 2025

I did this changed cause since CMake 4.0.0, minimum value before 3.5 are not any longer authorized. It is still possible to add a dedicated environment variable to accept lower version. In my case, I was able to update each sub-library I use in my project, EntityX seems to be the only one CMake not updated.

Source : https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features

Error produced :

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.

@alecthomas
Copy link
Owner

Why update the minimum version if it works on the older version?

@Erwsaym
Copy link
Contributor Author

Erwsaym commented Aug 23, 2025

Hey !

Sorry to not having filled the PR description (tbh I just wanted to fork the repo to make the adaptation for myself, but it could be great to be updated in the main repo anyway)

I did this changed cause since CMake 4.0.0, minimum value before 3.5 are not any longer authorized. It is still possible to add a dedicated environment variable to accept lower version. In my case, I was able to update each sub-library I use in my project, EntityX seems to be the only one CMake not updated.

Source : https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features

Error produced :

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 be more tolerent, it is possible to set a min...max version with the min the old one and max "3.5".

@alecthomas
Copy link
Owner

Aaaah, makes sense, thanks.

@alecthomas alecthomas merged commit ee3042f into alecthomas:master Aug 23, 2025
0 of 10 checks passed
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