Skip to content
Snippets Groups Projects
Commit 259108ea authored by Innocent Niyonzima's avatar Innocent Niyonzima
Browse files

find all mumps libs

parent af87cd8d
No related branches found
No related tags found
No related merge requests found
...@@ -843,17 +843,25 @@ if(HAVE_SOLVER) ...@@ -843,17 +843,25 @@ if(HAVE_SOLVER)
endif(ENABLE_TAUCS) endif(ENABLE_TAUCS)
if(ENABLE_MUMPS) if(ENABLE_MUMPS)
find_library(DMUMPS_LIB smumps PATH_SUFFIXES lib)
find_library(DMUMPS_LIB dmumps PATH_SUFFIXES lib) find_library(DMUMPS_LIB dmumps PATH_SUFFIXES lib)
find_library(ZMUMPS_LIB cmumps PATH_SUFFIXES lib)
find_library(ZMUMPS_LIB zmumps PATH_SUFFIXES lib) find_library(ZMUMPS_LIB zmumps PATH_SUFFIXES lib)
find_path(DMUMPS_INC "smumps_c.h" PATH_SUFFIXES src include)
find_path(DMUMPS_INC "dmumps_c.h" PATH_SUFFIXES src include) find_path(DMUMPS_INC "dmumps_c.h" PATH_SUFFIXES src include)
find_path(ZMUMPS_INC "cmumps_c.h" PATH_SUFFIXES src include)
find_path(ZMUMPS_INC "zmumps_c.h" PATH_SUFFIXES src include) find_path(ZMUMPS_INC "zmumps_c.h" PATH_SUFFIXES src include)
if(DMUMPS_LIB AND DMUMPS_INC AND ZMUMPS_LIB AND ZMUMPS_INC) if(SMUMPS_LIB AND SMUMPS_INC AND
DMUMPS_LIB AND DMUMPS_INC AND
CMUMPS_LIB AND CMUMPS_INC AND
ZMUMPS_LIB AND ZMUMPS_INC)
set_config_option(HAVE_MUMPS "MUMPS") set_config_option(HAVE_MUMPS "MUMPS")
add_definitions(-DGMM_USES_MUMPS)
list(APPEND EXTERNAL_LIBRARIES ${DMUMPS_LIB}) list(APPEND EXTERNAL_LIBRARIES ${DMUMPS_LIB})
list(APPEND EXTERNAL_INCLUDES ${DMUMPS_INC}) list(APPEND EXTERNAL_INCLUDES ${DMUMPS_INC})
list(APPEND EXTERNAL_LIBRARIES ${ZMUMPS_LIB}) list(APPEND EXTERNAL_LIBRARIES ${ZMUMPS_LIB})
list(APPEND EXTERNAL_INCLUDES ${ZMUMPS_INC}) list(APPEND EXTERNAL_INCLUDES ${ZMUMPS_INC})
endif(DMUMPS_LIB AND DMUMPS_INC AND ZMUMPS_LIB AND ZMUMPS_INC) endif(DMUMPS_LIB AND DMUMPS_INC AND ZMUMPS_LIB AND ZMUMPS_INC)
endif(ENABLE_MUMPS) endif(ENABLE_MUMPS)
if(ENABLE_PETSC) if(ENABLE_PETSC)
......
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