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