Skip to content
Snippets Groups Projects
Commit 914fe943 authored by Robert K's avatar Robert K
Browse files

[bugfix][METIS] disable METIS if header inclusion does not compile.

parent 1670c4aa
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,16 @@ find_package(SIONlib)
find_package(DLMalloc)
find_package(ZOLTAN)
find_package(METIS)
if( METIS_FOUND )
# check if metis header compiles, otherwise disable METIS
check_cxx_source_compiles("
#include <metis.h>
int main () { return 0; }
" METIS_FOUND)
if(NOT METIS_FOUND )
unset(HAVE_METIS)
endif()
endif ()
# check for phtreads
include(FindPThreads)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment