From fec8084081aa9bec90c94ad605c5f8374fbbe914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Thu, 31 Aug 2023 19:04:46 +0200 Subject: [PATCH] CMake: Import CUDA toolkit targets when importing SPQR_CUDA. --- SPQR/Config/SPQR_CUDAConfig.cmake.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SPQR/Config/SPQR_CUDAConfig.cmake.in b/SPQR/Config/SPQR_CUDAConfig.cmake.in index 35a46df88..e9c8cd304 100644 --- a/SPQR/Config/SPQR_CUDAConfig.cmake.in +++ b/SPQR/Config/SPQR_CUDAConfig.cmake.in @@ -34,6 +34,9 @@ set ( SPQR_CUDA_VERSION_MINOR @SPQR_VERSION_MINOR@ ) set ( SPQR_CUDA_VERSION_PATCH @SPQR_VERSION_SUB@ ) set ( SPQR_CUDA_VERSION "@SPQR_VERSION_MAJOR@.@SPQR_VERSION_MINOR@.@SPQR_VERSION_SUB@" ) +# Look for NVIDIA CUDA toolkit +find_package ( CUDAToolkit @CUDAToolkit_VERSION_MAJOR@ REQUIRED ) + include ( ${CMAKE_CURRENT_LIST_DIR}/SPQR_CUDATargets.cmake ) # The following is only for backward compatibility with FindSPQR_CUDA.