Merge pull request #10677 from alalek:issue_10668

This commit is contained in:
Alexander Alekhin 2018-01-24 17:48:11 +00:00
commit 0b1f626efd
3 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ macro(ocv_lapack_check)
else()
# adding proxy opencv_lapack.h header
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_end "")
else()

View File

@ -1,3 +1,4 @@
#include <complex.h>
#include "opencv_lapack.h"
static char* check_fn1 = (char*)sgesv_;

View File

@ -46,6 +46,7 @@
#ifdef HAVE_LAPACK
#include <complex.h>
#include "opencv_lapack.h"
#include <cmath>