Skip to content

Commit

Permalink
Merge branch 'FindBLAS-OpenBLAS-thread' into release-3.15
Browse files Browse the repository at this point in the history
Merge-request: !4134
  • Loading branch information
bradking committed Dec 12, 2019
2 parents b3a536e + d1e111d commit d71591d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Modules/FindBLAS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,12 @@ if (BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
""
)
endif()
if(NOT BLAS_LIBRARIES)
find_package(Threads)
if(NOT BLAS_LIBRARIES AND (CMAKE_C_COMPILER_LOADED OR CMAKE_CXX_COMPILER_LOADED))
if(BLAS_FIND_QUIETLY OR NOT BLAS_FIND_REQUIRED)
find_package(Threads)
else()
find_package(Threads REQUIRED)
endif()
# OpenBLAS (http://www.openblas.net)
check_fortran_libraries(
BLAS_LIBRARIES
Expand Down

0 comments on commit d71591d

Please sign in to comment.