From 8d8825778076be5be78bd3059111550fcd67d7c4 Mon Sep 17 00:00:00 2001 From: maier Date: Thu, 11 Jul 2013 17:44:31 +0000 Subject: [PATCH] CMake: Let FindMETIS search for libparmetis as well git-svn-id: https://svn.dealii.org/trunk@29976 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/modules/FindMETIS.cmake | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/deal.II/cmake/modules/FindMETIS.cmake b/deal.II/cmake/modules/FindMETIS.cmake index c6a5949ea5..634d82d462 100644 --- a/deal.II/cmake/modules/FindMETIS.cmake +++ b/deal.II/cmake/modules/FindMETIS.cmake @@ -49,13 +49,28 @@ FIND_LIBRARY(METIS_LIBRARY build/${CMAKE_CXX_PLATFORM_ID}-${CMAKE_SYSTEM_PROCESSOR}/libmetis ) +FIND_LIBRARY(PARMETIS_LIBRARY + NAMES parmetis + HINTS + ${METIS_DIR} + PATH_SUFFIXES + lib${LIB_SUFFIX} lib64 lib + # This is a hint, isn't it? + build/${CMAKE_CXX_PLATFORM_ID}-${CMAKE_SYSTEM_PROCESSOR}/libmetis + ) + FIND_PACKAGE_HANDLE_STANDARD_ARGS(METIS DEFAULT_MSG METIS_LIBRARY METIS_INCLUDE_DIR ) IF(METIS_FOUND) - SET(METIS_LIBRARIES + + IF(NOT PARMETIS_LIBRARY MATCHES "-NOTFOUND") + SET(METIS_LIBRARIES ${PARMETIS_LIBRARY}) + ENDIF() + + LIST(APPEND METIS_LIBRARIES ${METIS_LIBRARY} ${MPI_C_LIBRARIES} # for good measure ) -- 2.39.5