Skip to content

Commit

Permalink
cmake: export METIS dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed May 27, 2022
1 parent 8db75d0 commit 48cde4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ if (WITH_CHOLMOD)
add_library (cholmod_partition INTERFACE)
add_library (SuiteSparse::Partition ALIAS cholmod_partition)
target_link_libraries (cholmod_partition INTERFACE cholmod)

set (METIS_DEPENDENCY "find_dependency (METIS ${METIS_VERSION})")
endif (WITH_METIS AND METIS_FOUND)

target_link_libraries (cholmod
Expand Down
1 change: 1 addition & 0 deletions suitesparse-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ include (CMakeFindDependencyMacro)
find_dependency (BLAS)
find_dependency (LAPACK)
@CUDA_DEPENDENCY@
@METIS_DEPENDENCY@
@OpenMP_DEPENDENCY@
@TBB_DEPENDENCY@

Expand Down

0 comments on commit 48cde4d

Please sign in to comment.