diff --git a/modules/find/FindPASTIX.cmake b/modules/find/FindPASTIX.cmake index 72248cc79074e36df315fe72fd87c0537d314291..4d58c469fbed938817fd91b47e0dbbb6b7a273fa 100644 --- a/modules/find/FindPASTIX.cmake +++ b/modules/find/FindPASTIX.cmake @@ -45,6 +45,7 @@ # PASTIX_INCLUDE_DIRS - pastix include directories # PASTIX_LIBRARY_DIRS - pastix link directories # PASTIX_LIBRARIES - pastix libraries to be linked (absolute path) +# PASTIX_LIBRARIES_FORTRAN - pastix Fortran libraries to be linked (absolute path) # PASTIX_CFLAGS_OTHER_DEP - pastix + dependencies compiler flags without headers paths # PASTIX_LDFLAGS_OTHER_DEP - pastix + dependencies linker flags without libraries # PASTIX_INCLUDE_DIRS_DEP - pastix + dependencies include directories @@ -896,6 +897,18 @@ endif() mark_as_advanced(PASTIX_DIR) mark_as_advanced(PASTIX_DIR_FOUND) +if (PASTIX_LIBRARY_DIRS) + find_library(PASTIX_pastixf_LIBRARY + NAMES pastixf + HINTS ${PASTIX_LIBRARY_DIRS}) + mark_as_advanced(PASTIX_pastixf_LIBRARY) + if (PASTIX_pastixf_LIBRARY) + set(PASTIX_LIBRARIES_FORTRAN ${PASTIX_pastixf_LIBRARY}) + else() + set(PASTIX_LIBRARIES_FORTRAN "PASTIX_LIBRARIES_FORTRAN-NOTFOUND") + endif() +endif() + # check that PASTIX has been found # --------------------------------- include(FindPackageHandleStandardArgs)