diff options
author | Brad King <brad.king@kitware.com> | 2019-12-13 15:36:29 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-12-13 15:36:36 (GMT) |
commit | ff67b24ecde36ebbcc169a273691f0697e6cc5fe (patch) | |
tree | ed733acc9436cc5f50dded60640dd42d35d7a535 /Modules/FindBLAS.cmake | |
parent | 3c1904b4173d22f0442682d6c6862e404d00460b (diff) | |
parent | d1e111d166891dea7653f49acb13b2262242758e (diff) | |
download | CMake-ff67b24ecde36ebbcc169a273691f0697e6cc5fe.zip CMake-ff67b24ecde36ebbcc169a273691f0697e6cc5fe.tar.gz CMake-ff67b24ecde36ebbcc169a273691f0697e6cc5fe.tar.bz2 |
Merge topic 'FindBLAS-OpenBLAS-thread'
d1e111d166 FindBLAS: Consider OpenBLAS with thread libraries only with C or CXX
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4134
Diffstat (limited to 'Modules/FindBLAS.cmake')
-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 165627e..dc73f16 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 |