File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ if(NOT EXISTS "${PARMETIS_INCLUDE_DIR}")
1212 message (FATAL_ERROR "parmetis include dir not found" )
1313endif ()
1414
15+ find_path (METIS_INCLUDE_DIR metis.h PATHS "${PARMETIS_PREFIX} /include" )
16+ if (NOT EXISTS "${METIS_INCLUDE_DIR} " )
17+ message (FATAL_ERROR "metis include dir not found" )
18+ endif ()
19+
20+
1521find_library (PARMETIS_LIBRARY parmetis PATHS "${PARMETIS_PREFIX} /lib" )
1622if (NOT EXISTS "${PARMETIS_LIBRARY} " )
1723 message (FATAL_ERROR "parmetis library not found" )
@@ -23,7 +29,7 @@ if(NOT EXISTS "${METIS_LIBRARY}")
2329endif ()
2430
2531set (PARMETIS_LIBRARIES ${PARMETIS_LIBRARY} ${METIS_LIBRARY} )
26- set (PARMETIS_INCLUDE_DIRS ${PARMETIS_INCLUDE_DIR} )
32+ set (PARMETIS_INCLUDE_DIRS ${PARMETIS_INCLUDE_DIR} ${METIS_INCLUDE_DIR} )
2733
2834include (FindPackageHandleStandardArgs)
2935# handle the QUIETLY and REQUIRED arguments and set PARMETIS_FOUND to TRUE
You can’t perform that action at this time.
0 commit comments