cmake: fix MKL detection in case of unsupported versions

CMake should not fail.
This commit is contained in:
Alexander Alekhin
2017-01-19 13:33:39 +03:00
parent a22f03e749
commit f9828cd0c9
2 changed files with 13 additions and 11 deletions

View File

@@ -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()