diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/eigen/find-ptscotch.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/eigen/find-ptscotch.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/eigen/find-ptscotch.patch b/var/spack/repos/builtin/packages/eigen/find-ptscotch.patch new file mode 100644 index 0000000000..4f6e286b72 --- /dev/null +++ b/var/spack/repos/builtin/packages/eigen/find-ptscotch.patch @@ -0,0 +1,27 @@ +Version 3.3.4 contained a bug that prevented it from finding scotch~mpi. + +diff --git a/tmp/FindPTSCOTCH.cmake b/cmake/FindPTSCOTCH.cmake +index 1396d05..23451b1 100644 +--- a/tmp/FindPTSCOTCH.cmake ++++ b/cmake/FindPTSCOTCH.cmake +@@ -167,11 +167,11 @@ endif() + + # If found, add path to cmake variable + # ------------------------------------ ++unset(PTSCOTCH_INCLUDE_DIRS) + foreach(ptscotch_hdr ${PTSCOTCH_hdrs_to_find}) + if (PTSCOTCH_${ptscotch_hdr}_DIRS) + list(APPEND PTSCOTCH_INCLUDE_DIRS "${PTSCOTCH_${ptscotch_hdr}_DIRS}") + else () +- set(PTSCOTCH_INCLUDE_DIRS "PTSCOTCH_INCLUDE_DIRS-NOTFOUND") + if (NOT PTSCOTCH_FIND_QUIETLY) + message(STATUS "Looking for ptscotch -- ${ptscotch_hdr} not found") + endif() +@@ -255,7 +255,6 @@ foreach(ptscotch_lib ${PTSCOTCH_libs_to_find}) + list(APPEND PTSCOTCH_LIBRARIES "${PTSCOTCH_${ptscotch_lib}_LIBRARY}") + list(APPEND PTSCOTCH_LIBRARY_DIRS "${${ptscotch_lib}_lib_path}") + else () +- list(APPEND PTSCOTCH_LIBRARIES "${PTSCOTCH_${ptscotch_lib}_LIBRARY}") + if (NOT PTSCOTCH_FIND_QUIETLY) + message(STATUS "Looking for ptscotch -- lib ${ptscotch_lib} not found") + endif() |