zsync2 icon indicating copy to clipboard operation
zsync2 copied to clipboard

lib/zlib: Bump minimum CMake version to 3.6

Open trinitronx opened this issue 7 months ago • 9 comments

Fixing CMake version dependency related to: TheAssassin/AppImageLauncher#717

trinitronx avatar May 23 '25 22:05 trinitronx

Out of curiosity, why 3.6?

TheAssassin avatar May 23 '25 22:05 TheAssassin

Out of curiosity, why 3.6?

The error message mentions that CMake < 3.5 compatibility has been deprecated:

  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.

EDIT: Note that this was building with cmake version 4.0.2-1 from Arch Linux extra/cmake package.

trinitronx avatar May 23 '25 22:05 trinitronx

I'll have to fix the CI first.

TheAssassin avatar May 23 '25 22:05 TheAssassin

FYI: It also seems that CMake version needs to be updated in at least a few more sub-dependencies:

trinitronx avatar May 23 '25 22:05 trinitronx

Looks like it also needs one more update here [^1]:

[^1]: EDIT: Actually updates in a few more places, and probably this CMake min version needs to propagate to other sub-dependencies such as azubieta/xdg-utils-cxx.

trinitronx avatar May 23 '25 22:05 trinitronx

Please don't hesitate to open more PRs, I'll happily merge all I can.

TheAssassin avatar May 23 '25 22:05 TheAssassin

Re. args, you can push an update to your branch as needed. For the record, < 3.5 means 3.5 is still supported (3.6 would be required if it was <= 3.5; < excludes the provided value).

TheAssassin avatar May 23 '25 22:05 TheAssassin

Ok, pushed a few more PRs:

  • Upstream: azubieta/xdg-utils-cxx#21
  • AppImageCommunity/libappimage#199

Once merged, we need to bump those GIT_TAG refs also to propagate the changes from sub-dependencies up:

trinitronx avatar May 23 '25 23:05 trinitronx

Re. args, you can push an update to your branch as needed.

Ok, pushed here in 53198ac

For the record, < 3.5 means 3.5 is still supported (3.6 would be required if it was <= 3.5; < excludes the provided value).

Makes sense. I must've misread it as <= earlier. I guess 3.6 gives us a bit more time if they decide to deprecate 3.5 at some point. Also it has more ninja (features... that is :sweat_smile:)

trinitronx avatar May 24 '25 05:05 trinitronx