On 4/21/25 4:15 AM, Pocket wrote:
I am building packages following DeveloperWiki:Building in a clean chroot
When building packages that are associated with gnome I get the following error:
CMake Error at wsrep-lib/CMakeLists.txt:5 (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.
Adding export CMAKE_POLICY_VERSION_MINIMUM=3.5 doesn't correct my problem.
Is there another way to get past this without adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to the PKGBUILD?
You can patch the upstream CMakeLists.txt to raise the "cmake_minimum_required". See https://lists.archlinux.org/archives/list/arch-dev-public@lists.archlinux.or... -- Regards, Robin Candau / Antiz