Previously we added (PAR)METIS_INCLUDE_DIRS to CMAKE_REQUIRED_INCLUDES even if these directories were not found and set to (PAR)METIS_INCLUDE_DIR-NOTFOUND. Now we test whether they are found and only use them in this case.
Previously we added (PAR)METIS_INCLUDE_DIRS to CMAKE_REQUIRED_INCLUDES even if these directories were not found and set to (PAR)METIS_INCLUDE_DIR-NOTFOUND. Now we test whether they are found and only use them in this case.