added pthread detection for gotoblas2/openblas, which is necessary on some distributions

This commit is contained in:
Ronan Collobert
2012-03-06 11:19:10 +01:00
parent ed9de62be4
commit d60f220e18

View File

@ -118,6 +118,20 @@ if((NOT BLAS_LIBRARIES)
endif(BLAS_LIBRARIES)
endif()
if((NOT BLAS_LIBRARIES)
AND ((NOT WITH_BLAS) OR (WITH_BLAS STREQUAL "open")))
check_fortran_libraries(
BLAS_LIBRARIES
BLAS
sgemm
""
"openblas;gfortran;pthread")
if(BLAS_LIBRARIES)
set(BLAS_INFO "open")
endif(BLAS_LIBRARIES)
endif()
if((NOT BLAS_LIBRARIES)
AND ((NOT WITH_BLAS) OR (WITH_BLAS STREQUAL "goto")))
check_fortran_libraries(
@ -131,6 +145,19 @@ if((NOT BLAS_LIBRARIES)
endif (BLAS_LIBRARIES)
endif()
if((NOT BLAS_LIBRARIES)
AND ((NOT WITH_BLAS) OR (WITH_BLAS STREQUAL "goto")))
check_fortran_libraries(
BLAS_LIBRARIES
BLAS
sgemm
""
"goto2;gfortran;pthread")
if (BLAS_LIBRARIES)
set(BLAS_INFO "goto")
endif (BLAS_LIBRARIES)
endif()
if((NOT BLAS_LIBRARIES)
AND ((NOT WITH_BLAS) OR (WITH_BLAS STREQUAL "acml")))
check_fortran_libraries(