Skip to content

Building fails with CMake version 4.0.0 or later #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sincos2854 opened this issue Feb 22, 2025 · 2 comments · May be fixed by #471
Closed

Building fails with CMake version 4.0.0 or later #470

sincos2854 opened this issue Feb 22, 2025 · 2 comments · May be fixed by #471

Comments

@sincos2854
Copy link

I built libde265 with CMake version 4.0.0 RC1 and encountered the following 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.


-- Configuring incomplete, errors occurred!

Could someone please update cmake_minimum_required?

CMake Release Notes
https://www.kitware.com/cmake-4-0-0-rc1-is-ready-for-testing/

@farindk
Copy link
Contributor

farindk commented Apr 26, 2025

Does it work now?

@sincos2854
Copy link
Author

Yes, it works now. Thank you very much.

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 a pull request may close this issue.

2 participants