File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,18 @@ macro(ocv_lapack_check)
31
31
else ()
32
32
# adding proxy opencv_lapack.h header
33
33
set (CBLAS_H_PROXY_PATH ${CMAKE_BINARY_DIR} /opencv_lapack.h )
34
- set (_lapack_include_str "extern \" C\" {\n\# include \" ${OPENCV_CBLAS_H_PATH_${_lapack_impl} }\" " )
34
+ if (APPLE )
35
+ set (_lapack_include_str_extern_C "" )
36
+ set (_lapack_include_str_extern_C_end "" )
37
+ else ()
38
+ set (_lapack_include_str_extern_C "extern \" C\" {\n " )
39
+ set (_lapack_include_str_extern_C_end "}\n " )
40
+ endif ()
41
+ set (_lapack_include_str "${_lapack_include_str_extern_C} \# include \" ${OPENCV_CBLAS_H_PATH_${_lapack_impl} }\" " )
35
42
if (NOT "${OPENCV_CBLAS_H_PATH_${_lapack_impl} }" STREQUAL "${OPENCV_LAPACKE_H_PATH_${_lapack_impl} }" )
36
43
set (_lapack_include_str "${_lapack_include_str} \n #include \" ${OPENCV_LAPACKE_H_PATH_${_lapack_impl} }\" " )
37
44
endif ()
38
- set (_lapack_include_str "${_lapack_include_str} \n } \n " )
45
+ set (_lapack_include_str "${_lapack_include_str} \n ${_lapack_include_str_extern_C_end} " )
39
46
# update file contents (if required)
40
47
set (__content_str "" )
41
48
if (EXISTS "${CBLAS_H_PROXY_PATH} " )
You can’t perform that action at this time.
0 commit comments