mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
cmake: fix MKL detection in case of unsupported versions
CMake should not fail.
This commit is contained in:
@@ -133,6 +133,7 @@ if(WITH_LAPACK)
|
||||
set(LAPACK_IMPL "LAPACK/Apple")
|
||||
ocv_lapack_check()
|
||||
else()
|
||||
unset(LAPACK_LIBRARIES)
|
||||
unset(LAPACK_LIBRARIES CACHE)
|
||||
endif()
|
||||
endif()
|
||||
@@ -147,7 +148,7 @@ if(WITH_LAPACK)
|
||||
ocv_lapack_check()
|
||||
endif()
|
||||
|
||||
if(NOT HAVE_LAPACK AND LAPACK_LIBRARIES)
|
||||
if(NOT HAVE_LAPACK AND LAPACK_LIBRARIES AND LAPACK_CBLAS_H AND LAPACK_LAPACKE_H)
|
||||
ocv_lapack_check()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user