Skip to content

Commit

Permalink
Correctly handle dependencies for SuperLUDist (TriBITSPub/TriBITS#299)
Browse files Browse the repository at this point in the history
You only need to list a dependency on ParMETIS and not worry about METIS
(which will come in through ParMETIS).  This should fix one of the PR builds
that enables SuperLUDist but not ParMETIS.
  • Loading branch information
bartlettroscoe committed Jul 15, 2022
1 parent af37943 commit fa06795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/TPLs/FindTPLSuperLUDist.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int main()
"
)

SET(CMAKE_REQUIRED_LIBRARIES SuperLUDist::all_libs ParMETIS::all_libs METIS::all_libs BLAS::all_libs)
SET(CMAKE_REQUIRED_LIBRARIES SuperLUDist::all_libs)
SET(CMAKE_REQUIRED_FLAGS ${CMAKE_EXE_LINKER_FLAGS})
CHECK_C_SOURCE_COMPILES("${SOURCE}" ${VARNAME})
ENDFUNCTION()
Expand All @@ -100,7 +100,7 @@ int main()
"
)

SET(CMAKE_REQUIRED_LIBRARIES SuperLUDist::all_libs ParMETIS::all_libs METIS::all_libs BLAS::all_libs)
SET(CMAKE_REQUIRED_LIBRARIES SuperLUDist::all_libs)
SET(CMAKE_REQUIRED_FLAGS ${CMAKE_EXE_LINKER_FLAGS})
CHECK_C_SOURCE_COMPILES("${SOURCE}" ${VARNAME})
ENDFUNCTION()
Expand Down
2 changes: 1 addition & 1 deletion cmake/TPLs/FindTPLSuperLUDistDependencies.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tribits_extpkg_define_dependencies( SuperLUDist
DEPENDENCIES BLAS)
DEPENDENCIES ParMETIS BLAS)

0 comments on commit fa06795

Please sign in to comment.