Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
2a637461
Commit
2a637461
authored
Oct 21, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #827 from alalek:hdf5_warn
parents
c47b0ea2
213e0bb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
CMakeLists.txt
modules/hdf/CMakeLists.txt
+11
-14
No files found.
modules/hdf/CMakeLists.txt
View file @
2a637461
...
...
@@ -16,24 +16,21 @@ if(WIN32)
set
(
HDF5_FOUND
"NO"
)
endif
()
else
()
find_package
(
HDF5
)
if
(
NOT CMAKE_CROSSCOMPILING
)
# iOS build should not reuse OSX package
find_package
(
HDF5
)
endif
()
endif
()
if
(
HDF5_FOUND
)
set
(
HAVE_HDF5 1
)
message
(
STATUS
"HDF5: YES"
)
else
()
ocv_module_disable
(
hdf
)
message
(
STATUS
"HDF5: NO"
)
if
(
NOT HDF5_FOUND
)
ocv_module_disable
(
hdf
)
# no return
endif
()
set
(
HAVE_HDF5 1
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Winvalid-offsetof
)
set
(
the_description
"Hierarchical Data Format I/O"
)
ocv_define_module
(
hdf opencv_core WRAP python
)
if
(
HDF5_FOUND
)
include_directories
(
${
HDF5_INCLUDE_DIRS
}
)
endif
()
if
(
HDF5_FOUND
)
target_link_libraries
(
opencv_hdf
${
HDF5_LIBRARIES
}
)
endif
()
include_directories
(
${
HDF5_INCLUDE_DIRS
}
)
target_link_libraries
(
opencv_hdf
${
HDF5_LIBRARIES
}
)
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