mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 13:41:05 +00:00
Closes: https://bugs.gentoo.org/962527 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43729 Closes: https://github.com/gentoo/gentoo/pull/43729 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
20 lines
894 B
Diff
20 lines
894 B
Diff
diff --git a/cmake/OpenCVFindLAPACK.cmake b/cmake/OpenCVFindLAPACK.cmake
|
|
index 2ec1889..ff6adf2 100644
|
|
--- a/cmake/OpenCVFindLAPACK.cmake
|
|
+++ b/cmake/OpenCVFindLAPACK.cmake
|
|
@@ -229,12 +229,13 @@ if(WITH_LAPACK)
|
|
if(NOT DEFINED CBLAS_INCLUDE_DIR)
|
|
find_path(CBLAS_INCLUDE_DIR "cblas.h")
|
|
endif()
|
|
- if(CBLAS_INCLUDE_DIR AND LAPACKE_INCLUDE_DIR)
|
|
+ find_package(CBLAS)
|
|
+ if(CBLAS_INCLUDE_DIR AND LAPACKE_INCLUDE_DIR AND CBLAS_FOUND)
|
|
ocv_lapack_check(IMPL "LAPACK/Generic"
|
|
CBLAS_H "cblas.h"
|
|
LAPACKE_H "lapacke.h"
|
|
INCLUDE_DIR "${CBLAS_INCLUDE_DIR}" "${LAPACKE_INCLUDE_DIR}"
|
|
- LIBRARIES "${LAPACK_LIBRARIES}")
|
|
+ LIBRARIES "${LAPACK_LIBRARIES};${CBLAS_LIBRARIES}")
|
|
elseif(APPLE)
|
|
ocv_lapack_check(IMPL "LAPACK/Apple"
|
|
CBLAS_H "Accelerate/Accelerate.h"
|