28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
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()
|