Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
def8fa22
Commit
def8fa22
authored
May 22, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14557 from mshabunin:win-lapack
parents
2fd1a4ee
fff7b7e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
OpenCVFindLAPACK.cmake
cmake/OpenCVFindLAPACK.cmake
+22
-16
No files found.
cmake/OpenCVFindLAPACK.cmake
View file @
def8fa22
...
...
@@ -31,27 +31,33 @@ macro(ocv_lapack_check)
else
()
# adding proxy opencv_lapack.h header
set
(
CBLAS_H_PROXY_PATH
${
CMAKE_BINARY_DIR
}
/opencv_lapack.h
)
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
(
)
set
(
_lapack_include_str_extern_C
"extern
\"
C
\"
{
\n
"
)
set
(
_lapack_include_str_extern_C_end
"}
\n
"
)
set
(
_lapack_add_extern_c
NOT
(
APPLE OR OPENCV_SKIP_LAPACK_EXTERN_C
)
OR OPENCV_FORCE_LAPACK_EXTERN_C
)
set
(
_lapack_content
"// This file is auto-generated
\n
"
)
if
(
${
_lapack_add_extern_c
}
)
list
(
APPEND _lapack_content
"extern
\"
C
\"
{
"
)
endif
()
set
(
_lapack_include_str
"
${
_lapack_include_str_extern_C
}
\#
include
\"
${
OPENCV_CBLAS_H_PATH_
${
_lapack_impl
}}
\"
"
)
if
(
NOT
"
${
OPENCV_CBLAS_H_PATH_
${
_lapack_impl
}}
"
STREQUAL
"
${
OPENCV_LAPACKE_H_PATH_
${
_lapack_impl
}}
"
)
set
(
_lapack_include_str
"
${
_lapack_include_str
}
\n
#include
\"
${
OPENCV_LAPACKE_H_PATH_
${
_lapack_impl
}}
\"
"
)
if
(
NOT OPENCV_SKIP_LAPACK_MSVC_FIX
)
list
(
APPEND _lapack_content
"
#ifdef _MSC_VER
#include <complex.h>
#define lapack_complex_float _Fcomplex
#define lapack_complex_double _Dcomplex
#endif
"
)
endif
()
set
(
_lapack_include_str
"
${
_lapack_include_str
}
\n
${
_lapack_include_str_extern_C_end
}
"
)
# update file contents (if required)
set
(
__content_str
""
)
if
(
EXISTS
"
${
CBLAS_H_PROXY_PATH
}
"
)
file
(
READ
"
${
CBLAS_H_PROXY_PATH
}
"
__content_str
)
list
(
APPEND _lapack_content
"#include
\"
${
OPENCV_CBLAS_H_PATH_
${
_lapack_impl
}}
\"
"
)
if
(
NOT
"
${
OPENCV_CBLAS_H_PATH_
${
_lapack_impl
}}
"
STREQUAL
"
${
OPENCV_LAPACKE_H_PATH_
${
_lapack_impl
}}
"
)
list
(
APPEND _lapack_content
"#include
\"
${
OPENCV_LAPACKE_H_PATH_
${
_lapack_impl
}}
\"
"
)
endif
()
if
(
NOT
"
${
__content_str
}
"
STREQUAL
"
${
_lapack_include_str
}
"
)
file
(
WRITE
"
${
CBLAS_H_PROXY_PATH
}
"
"
${
_lapack_include_str
}
"
)
if
(
${
_lapack_add_extern_c
}
)
list
(
APPEND _lapack_content
"
}"
)
endif
()
string
(
REPLACE
";"
"
\n
"
_lapack_content
"
${
_lapack_content
}
"
)
ocv_update_file
(
"
${
CBLAS_H_PROXY_PATH
}
"
"
${
_lapack_content
}
"
)
try_compile
(
__VALID_LAPACK
"
${
OpenCV_BINARY_DIR
}
"
"
${
OpenCV_SOURCE_DIR
}
/cmake/checks/lapack_check.cpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment