From a3b4d4608d4c1d0db5b6b01e48bbf9ac7a541ee9 Mon Sep 17 00:00:00 2001 From: Sovrasov Date: Wed, 10 Aug 2016 12:56:04 +0100 Subject: [PATCH] Static Lapack linkage --- cmake/OpenCVFindLibsPerf.cmake | 3 +++ 1 file changed, 3 insertions(+) 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")