Skip to content

Commit

Permalink
CMake: Import CUDA toolkit targets when importing SPQR_CUDA.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Aug 31, 2023
1 parent a6dd4c4 commit fec8084
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SPQR/Config/SPQR_CUDAConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fec8084

Please sign in to comment.