Skip to content
Snippets Groups Projects
Commit bbe203e8 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Don't add -lm to METIS_LIBRARY if this is not found.

parent bca30529
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ find_library(METIS_LIBRARY ${METIS_LIB_NAME}
)
# we need to check whether we need to link m, copy the lazy solution from FindBLAS and FindLAPACK here.
if(NOT WIN32)
if(METIS_LIBRARY AND NOT WIN32)
list(APPEND METIS_LIBRARY "-lm")
endif()
......
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