Skip to content

Commit

Permalink
cmake: add cuda deps for downstream packages (#1062)
Browse files Browse the repository at this point in the history
Added find_dependency calls which mirror find_package in cmake/HYPRE_SetupCUDAToolkit.cmake.
Without this the downstream app has to add the same dependency paths as the hypre build
  • Loading branch information
streeve authored Feb 2, 2024
1 parent 19cbc1f commit ba42ea8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/config/HYPREConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit ba42ea8

Please sign in to comment.