diff --git a/src/config/HYPREConfig.cmake.in b/src/config/HYPREConfig.cmake.in index fb6b437d5e..abf6a99bfd 100644 --- a/src/config/HYPREConfig.cmake.in +++ b/src/config/HYPREConfig.cmake.in @@ -73,4 +73,11 @@ if(HYPRE_WITH_OPENMP) find_dependency(OpenMP) endif() +if(HYPRE_WITH_CUDA) + find_dependency(CUDA REQUIRED) + if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.17) + find_dependency(CUDAToolkit REQUIRED) + endif() +endif() + include("${CMAKE_CURRENT_LIST_DIR}/HYPRETargets.cmake")