From 04ae6a50ed4b13cbc23e76195d928ac1dc1981e9 Mon Sep 17 00:00:00 2001 From: Alex James Date: Tue, 13 May 2025 21:01:49 -0500 Subject: [PATCH] pcl: fix CUDA support The documentation [1] and upstream CI [2] define additional flags to enable CUDA support. [1]: https://pointclouds.org/documentation/tutorials/gpu_install.html [2]: https://github.com/PointCloudLibrary/pcl/blob/d3769b16170f73df40fc23bb7473b5f2fdcfac06/.ci/azure-pipelines/build/ubuntu.yaml --- pkgs/by-name/pc/pcl/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pc/pcl/package.nix b/pkgs/by-name/pc/pcl/package.nix index 7d5caeeecf81..6a0e24a4a6f4 100644 --- a/pkgs/by-name/pc/pcl/package.nix +++ b/pkgs/by-name/pc/pcl/package.nix @@ -71,8 +71,10 @@ stdenv.mkDerivation (finalAttrs: { vtk ]; - cmakeFlags = lib.optionals cudaSupport [ - (lib.cmakeBool "WITH_CUDA" true) + cmakeFlags = [ + (lib.cmakeBool "BUILD_CUDA" cudaSupport) + (lib.cmakeBool "BUILD_GPU" cudaSupport) + (lib.cmakeBool "WITH_CUDA" cudaSupport) ]; passthru.updateScript = gitUpdater {