diff options
author | Brad King <brad.king@kitware.com> | 2019-12-12 17:13:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-12-12 17:13:10 (GMT) |
commit | d71591dfd534b97550c59bf24f03b602004d4597 (patch) | |
tree | c7fe48b060b560ac2b745b1b7aaa7af1011cf1d8 | |
parent | b3a536e726a601b2f17aaad14fee6cb0e215450a (diff) | |
parent | d1e111d166891dea7653f49acb13b2262242758e (diff) | |
download | CMake-d71591dfd534b97550c59bf24f03b602004d4597.zip CMake-d71591dfd534b97550c59bf24f03b602004d4597.tar.gz CMake-d71591dfd534b97550c59bf24f03b602004d4597.tar.bz2 |
Merge branch 'FindBLAS-OpenBLAS-thread' into release-3.15
Merge-request: !4134
-rw-r--r-- | Modules/FindBLAS.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake index 77f9d0e..d3acafc 100644 --- a/Modules/FindBLAS.cmake +++ b/Modules/FindBLAS.cmake @@ -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 |