Commit ee4f4095 authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: lapack optimized code requires cblas.h

parent b23527bf
...@@ -6,14 +6,17 @@ ...@@ -6,14 +6,17 @@
if(WITH_LAPACK) if(WITH_LAPACK)
find_package(LAPACK) find_package(LAPACK)
if(LAPACK_FOUND) if(LAPACK_FOUND)
find_path(LAPACK_INCLUDE_DIR "lapacke.h") find_path(LAPACKE_INCLUDE_DIR "lapacke.h")
if(LAPACK_INCLUDE_DIR) if(LAPACKE_INCLUDE_DIR)
find_path(CBLAS_INCLUDE_DIR "cblas.h")
if(CBLAS_INCLUDE_DIR)
set(HAVE_LAPACK 1) 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}) list(APPEND OPENCV_LINKER_LIBS ${LAPACK_LIBRARIES})
endif() endif()
endif(LAPACK_FOUND) endif()
endif(WITH_LAPACK) endif()
endif()
# --- TBB --- # --- TBB ---
if(WITH_TBB) if(WITH_TBB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment