From ee4f409584cdc3910229d389cd09f9c7f3d63fe7 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 30 Jun 2016 17:10:27 +0300 Subject: [PATCH] cmake: lapack optimized code requires cblas.h --- cmake/OpenCVFindLibsPerf.cmake | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cmake/OpenCVFindLibsPerf.cmake b/cmake/OpenCVFindLibsPerf.cmake index 59ee42d32c..c679102d37 100644 --- a/cmake/OpenCVFindLibsPerf.cmake +++ b/cmake/OpenCVFindLibsPerf.cmake @@ -6,14 +6,17 @@ if(WITH_LAPACK) find_package(LAPACK) if(LAPACK_FOUND) - find_path(LAPACK_INCLUDE_DIR "lapacke.h") - if(LAPACK_INCLUDE_DIR) + find_path(LAPACKE_INCLUDE_DIR "lapacke.h") + if(LAPACKE_INCLUDE_DIR) + find_path(CBLAS_INCLUDE_DIR "cblas.h") + if(CBLAS_INCLUDE_DIR) set(HAVE_LAPACK 1) - ocv_include_directories(${LAPACK_INCLUDE_DIR}) + ocv_include_directories(${LAPACKE_INCLUDE_DIR} ${CBLAS_INCLUDE_DIR}) list(APPEND OPENCV_LINKER_LIBS ${LAPACK_LIBRARIES}) endif() - endif(LAPACK_FOUND) -endif(WITH_LAPACK) + endif() + endif() +endif() # --- TBB --- if(WITH_TBB)