Skip to content

Conversation

@hyperupcall
Copy link
Contributor

@hyperupcall hyperupcall commented May 9, 2025

When building AppImageUpdate (through AppImageLauncher), I came across the error:

CMake Error at build/_deps/appimageupdate-src/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.

The error shows when I use CMake v4.0.2, but not when I switch back to v3.31.7. Updating the minimum version to 3.5 fixed the issue for me.

I have also made a PR for AppImageLauncher.

@hyperupcall hyperupcall changed the title Update minimum required cmake version to 3.5 Update minimum required CMake version to 3.5 May 9, 2025
@probonopd
Copy link
Member

CMake changing constantly is a big source of frustration to me. If we merge this, then probably it won't build on older Linux distributions anymore because they ship an older CMake. I constantly run into this when I try to build software that uses CMake on old LTS distributions. What a pity!

@keithbowes
Copy link

CMake changing constantly is a big source of frustration to me. If we merge this, then probably it won't build on older Linux distributions anymore because they ship an older CMake. I constantly run into this when I try to build software that uses CMake on old LTS distributions. What a pity!

How old would a distro have to be in order to have anything older than CMake 3.5? Are there really any decade-old distros still being supported? The release version of the distro I use is only a couple of years old and I find myself having to upgrade packages manually (for example, I recently had to upgrade Cairo to 1.18.4, due to recent Firefox/LibreWolf AppImages crashing with the included 1.17.6), but the included version of CMake (version 3.26.4) hasn't been one of them thus far.

@TheAssassin
Copy link
Member

None of the relevant distros ships anything older than CMake 3.5 and even then you can always build your own CMake easily.

@TheAssassin TheAssassin enabled auto-merge (rebase) May 16, 2025 23:32
@TheAssassin
Copy link
Member

Thanks!

@TheAssassin TheAssassin merged commit 673af3c into AppImageCommunity:main May 16, 2025
4 of 5 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.

4 participants