ZenKit
ZenKit copied to clipboard
CMake 4.0 removed compatibility for versions older than 3.5
Error message:
CMake Error at vendor/doctest/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.
Release notes: https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features
Thanks for the heads-up! I suggest you use the -DCMAKE_POLICY_VERSION_MINIMUM=3.0 flag for now, an upstream fix might take a couple weeks.
Related: doctest#854
Right this needs an upstream fix. For some reason I thought Zenkit's own cmake file needed an update as well but it works just fine.
libsquish has the same problem but there a fix has already been made.
https://sourceforge.net/p/libsquish/code/111/
Well, it did take a bit long than "a couple weeks" but it's done now :)