Commit ddfb407d authored by Markus Blatt's avatar Markus Blatt

[release] Newest statically linked scotch requires pthread.

Otherwise I get thread symbols not found. This commit replaces always
empty variable _METIS_LIBRARIES with STDTHREAD_LINK_FLAGS to fix this.
parent 8b565d2b
......@@ -96,7 +96,7 @@ if(METIS_LIBRARY)
find_library(SCOTCHERR_LIBRARY scotcherr PATHS ${_lib_root} "The Scotch error library."
NO_DEFAULT_PATH)
if(SCOTCH_LIBRARY AND SCOTCHERR_LIBRARY)
set(_METIS_SCOTCH_LIBRARIES ${SCOTCH_LIBRARY} ${SCOTCHERR_LIBRARY} "${_METIS_LIBRARIES}")
set(_METIS_SCOTCH_LIBRARIES ${SCOTCH_LIBRARY} ${SCOTCHERR_LIBRARY} ${STDTHREAD_LINK_FLAGS} )
set(CMAKE_REQUIRED_LIBRARIES ${_CMAKE_REQUIRED_LIBRARIES} ${METIS_LIBRARY} ${_METIS_SCOTCH_LIBRARIES} ${_METIS_LM_LIBRARY})
# unset HAVE_METIS_PARTGRAPHKWAY to force another
# run of check_function_exists(METIS_PartGraphKway
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment