]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix: Only include libparmetis to the link interface if its likely that it belongs...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Oct 2013 22:06:49 +0000 (22:06 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Oct 2013 22:06:49 +0000 (22:06 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31107 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindMETIS.cmake

index 29c9be531f88b298b7450509d677377486183767..005905aecce8b219afdcfd2367e941839e4cd221 100644 (file)
@@ -78,7 +78,14 @@ MARK_AS_ADVANCED(
 
 IF(METIS_FOUND)
 
-  IF(NOT PARMETIS_LIBRARY MATCHES "-NOTFOUND")
+  #
+  # Sanity check: Only include parmetis library if it is in the same
+  # directory as the metis library...
+  #
+  GET_FILENAME_COMPONENT(_path1 "${PARMETIS_LIBRARY}" PATH)
+  GET_FILENAME_COMPONENT(_path2 "${ETIS_LIBRARY}" PATH)
+  IF( NOT PARMETIS_LIBRARY MATCHES "-NOTFOUND"
+      AND "${_path1}" STREQUAL "${_path2}" )
     SET(METIS_LIBRARIES ${PARMETIS_LIBRARY})
   ENDIF()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.