Commit d1d24fac authored by Florent Pruvost's avatar Florent Pruvost

add a suffix to look for (pt)scotch headers in the system

parent 495e7058
...@@ -1028,16 +1028,20 @@ endif (BLA_VENDOR STREQUAL "NAS" OR BLA_VENDOR STREQUAL "All") ...@@ -1028,16 +1028,20 @@ endif (BLA_VENDOR STREQUAL "NAS" OR BLA_VENDOR STREQUAL "All")
# Generic BLAS library? # Generic BLAS library?
if (BLA_VENDOR STREQUAL "Generic" OR BLA_VENDOR STREQUAL "All") if (BLA_VENDOR STREQUAL "Generic" OR BLA_VENDOR STREQUAL "All")
if(NOT BLAS_LIBRARIES) set(BLAS_SEARCH_LIBS "blas;blas_LINUX;blas_MAC;blas_WINDOWS")
check_fortran_libraries( foreach (SEARCH_LIB ${BLAS_SEARCH_LIBS})
BLAS_LIBRARIES if (BLAS_LIBRARIES)
BLAS else ()
sgemm check_fortran_libraries(
"" BLAS_LIBRARIES
"blas" BLAS
"" sgemm
) ""
endif() "${SEARCH_LIB}"
""
)
endif()
endforeach ()
endif (BLA_VENDOR STREQUAL "Generic" OR BLA_VENDOR STREQUAL "All") endif (BLA_VENDOR STREQUAL "Generic" OR BLA_VENDOR STREQUAL "All")
......
...@@ -132,7 +132,8 @@ else() ...@@ -132,7 +132,8 @@ else()
set(PTSCOTCH_ptscotch.h_DIRS "PTSCOTCH_ptscotch.h_DIRS-NOTFOUND") set(PTSCOTCH_ptscotch.h_DIRS "PTSCOTCH_ptscotch.h_DIRS-NOTFOUND")
find_path(PTSCOTCH_ptscotch.h_DIRS find_path(PTSCOTCH_ptscotch.h_DIRS
NAMES ptscotch.h NAMES ptscotch.h
HINTS ${_inc_env}) HINTS ${_inc_env}
PATH_SUFFIXES "scotch")
endif() endif()
endif() endif()
mark_as_advanced(PTSCOTCH_ptscotch.h_DIRS) mark_as_advanced(PTSCOTCH_ptscotch.h_DIRS)
......
...@@ -115,7 +115,8 @@ else() ...@@ -115,7 +115,8 @@ else()
set(SCOTCH_scotch.h_DIRS "SCOTCH_scotch.h_DIRS-NOTFOUND") set(SCOTCH_scotch.h_DIRS "SCOTCH_scotch.h_DIRS-NOTFOUND")
find_path(SCOTCH_scotch.h_DIRS find_path(SCOTCH_scotch.h_DIRS
NAMES scotch.h NAMES scotch.h
HINTS ${_inc_env}) HINTS ${_inc_env}
PATH_SUFFIXES "scotch")
endif() endif()
endif() endif()
mark_as_advanced(SCOTCH_scotch.h_DIRS) mark_as_advanced(SCOTCH_scotch.h_DIRS)
......
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