Commit 1e1e306d authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'FindBLAS-OpenBLAS-thread'

276b56f0 FindBLAS: Add second try for OpenBLAS with thread libraries.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !3434
parents 0da805bf 276b56f0
......@@ -152,7 +152,9 @@ macro(Check_Fortran_Libraries LIBRARIES _prefix _name _flags _list _thread)
foreach(_library ${_list})
set(_combined_name ${_combined_name}_${_library})
if(NOT "${_thread}" STREQUAL "")
set(_combined_name ${_combined_name}_thread)
endif()
if(_libraries_work)
if (BLA_STATIC)
if (WIN32)
......@@ -479,6 +481,18 @@ if (BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
""
)
endif()
if(NOT BLAS_LIBRARIES)
find_package(Threads)
# OpenBLAS (http://www.openblas.net)
check_fortran_libraries(
BLAS_LIBRARIES
BLAS
sgemm
""
"openblas"
"${CMAKE_THREAD_LIBS_INIT}"
)
endif()
endif ()
if (BLA_VENDOR STREQUAL "FLAME" OR BLA_VENDOR STREQUAL "All")
......
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