diff --git a/pkgs/by-name/cl/cloudcompare/package.nix b/pkgs/by-name/cl/cloudcompare/package.nix index 496b0e7a761e..bcefbc878f88 100644 --- a/pkgs/by-name/cl/cloudcompare/package.nix +++ b/pkgs/by-name/cl/cloudcompare/package.nix @@ -91,6 +91,9 @@ stdenv.mkDerivation rec { "-DPLUGIN_STANDARD_QRANSAC_SD=OFF" # not compatible with GPL, broken on non-x86 "-DPLUGIN_STANDARD_QSRA=ON" "-DPLUGIN_STANDARD_QCLOUDLAYERS=ON" + # Fix the build with CMake 4, by overriding the minimum version globally, as support for < 3.5 was removed + # Ideally this can be removed at some time, but there are a lot of dependencies (e.g. plugins) which have a lower minimum version configured. + (lib.strings.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.5") ]; dontWrapGApps = true;