ZenKit icon indicating copy to clipboard operation
ZenKit copied to clipboard

CMake 4.0 removed compatibility for versions older than 3.5

Open thokkat opened this issue 8 months ago • 2 comments

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

thokkat avatar Apr 15 '25 15:04 thokkat

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

lmichaelis avatar Apr 16 '25 07:04 lmichaelis

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/

thokkat avatar Apr 16 '25 15:04 thokkat

Well, it did take a bit long than "a couple weeks" but it's done now :)

lmichaelis avatar Sep 06 '25 06:09 lmichaelis