diff --git a/cmake/OpenCVFindLAPACK.cmake b/cmake/OpenCVFindLAPACK.cmake index 09cd66cdae4faca1319aa4368a0616d90f7d3467..e281b4b78c4a91ae8713da6c3b4b8986717a94c1 100644 --- a/cmake/OpenCVFindLAPACK.cmake +++ b/cmake/OpenCVFindLAPACK.cmake @@ -136,6 +136,10 @@ if(WITH_LAPACK) unset(LAPACK_LIBRARIES) unset(LAPACK_LIBRARIES CACHE) endif() + else() + # LAPACK not found + unset(LAPACK_LIBRARIES) + unset(LAPACK_LIBRARIES CACHE) endif() endif()