Skip to content
Snippets Groups Projects
Commit f7f3d898 authored by Eisuke Kawashima's avatar Eisuke Kawashima Committed by Brad King
Browse files

FindBLAS: Add dependency of OpenBLAS on OpenMP for BLA_STATIC

Fixes: #16221
parent caed98d7
No related branches found
No related tags found
No related merge requests found
......@@ -586,16 +586,22 @@ if(BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
else()
find_package(Threads REQUIRED)
endif()
set(_threadlibs "${CMAKE_THREAD_LIBS_INIT}")
if(BLA_STATIC)
find_package(OpenMP COMPONENTS C)
list(PREPEND _threadlibs "${OpenMP_C_LIBRARIES}")
endif()
check_blas_libraries(
BLAS_LIBRARIES
BLAS
sgemm
""
"openblas"
"${CMAKE_THREAD_LIBS_INIT}"
"${_threadlibs}"
""
""
)
unset(_threadlibs)
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment