diff --git a/cmake/OpenCVFindLibsPerf.cmake b/cmake/OpenCVFindLibsPerf.cmake index 0364847329..82afd390ae 100644 --- a/cmake/OpenCVFindLibsPerf.cmake +++ b/cmake/OpenCVFindLibsPerf.cmake @@ -4,6 +4,9 @@ # --- Lapack --- if(WITH_LAPACK) + if(WIN32) + set(BLA_STATIC 1) + endif() find_package(LAPACK) if(LAPACK_FOUND) find_path(LAPACKE_INCLUDE_DIR "lapacke.h")