From 7acb3879ad51dd28f9eb949c768a1ff544e01233 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 5 Jun 2024 15:42:37 +0200 Subject: [PATCH] Throw FATAL_ERROR when CUDA NPP libraries are not found for chosen static or shared build --- 3rdparty/find_dependencies.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/3rdparty/find_dependencies.cmake b/3rdparty/find_dependencies.cmake index f826d8271b9..a28495cc4bb 100644 --- a/3rdparty/find_dependencies.cmake +++ b/3rdparty/find_dependencies.cmake @@ -1848,6 +1848,9 @@ if (BUILD_CUDA_MODULE) ) endif() endif() + if(NOT 3rdparty_cuda_npp_FOUND) + message(FATAL_ERROR "CUDA NPP libraries not found.") + endif() list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_SYSTEM Open3D::3rdparty_cuda_npp) endif ()