Commit 81c5fae5 authored by Alexander Alekhin's avatar Alexander Alekhin

core(lapack): fix build issues related to 'extern "C"'

parent b97b650a
...@@ -31,7 +31,7 @@ macro(ocv_lapack_check) ...@@ -31,7 +31,7 @@ macro(ocv_lapack_check)
else() else()
# adding proxy opencv_lapack.h header # adding proxy opencv_lapack.h header
set(CBLAS_H_PROXY_PATH ${CMAKE_BINARY_DIR}/opencv_lapack.h) set(CBLAS_H_PROXY_PATH ${CMAKE_BINARY_DIR}/opencv_lapack.h)
if(APPLE) if((APPLE OR OPENCV_SKIP_LAPACK_EXTERN_C) AND NOT OPENCV_FORCE_LAPACK_EXTERN_C)
set(_lapack_include_str_extern_C "") set(_lapack_include_str_extern_C "")
set(_lapack_include_str_extern_C_end "") set(_lapack_include_str_extern_C_end "")
else() else()
......
#include <complex.h>
#include "opencv_lapack.h" #include "opencv_lapack.h"
static char* check_fn1 = (char*)sgesv_; static char* check_fn1 = (char*)sgesv_;
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#ifdef HAVE_LAPACK #ifdef HAVE_LAPACK
#include <complex.h>
#include "opencv_lapack.h" #include "opencv_lapack.h"
#include <cmath> #include <cmath>
......
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