Skip to content

Commit

Permalink
fixes #5562
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A committed Mar 14, 2019
1 parent 9ac08b3 commit 6c3c673
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion ports/matio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ target_link_libraries(libmatio PRIVATE ZLIB::ZLIB)
target_compile_definitions(libmatio PRIVATE -DHAVE_ZLIB=1)

find_package(hdf5 CONFIG REQUIRED)
target_link_libraries(libmatio PRIVATE hdf5::hdf5-shared hdf5::hdf5_hl-shared)

if(BUILD_SHARED_LIBS)
target_compile_definitions(libmatio PRIVATE -DHAVE_HDF5=1 -DH5_BUILT_AS_DYNAMIC_LIB)
if(HDF5_USE_STATIC_LIBRARIES)
target_link_libraries(libmatio PRIVATE hdf5::hdf5-static hdf5::hdf5_hl-static)
else()
target_link_libraries(libmatio PRIVATE hdf5::hdf5-shared hdf5::hdf5_hl-shared)
endif()
else()
target_compile_definitions(libmatio PRIVATE -DHAVE_HDF5=1 -DH5_BUILT_AS_STATIC_LIB)
target_link_libraries(libmatio PRIVATE hdf5::hdf5-static hdf5::hdf5_hl-static)
endif()

install(
Expand Down
2 changes: 1 addition & 1 deletion ports/matio/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: matio
Version: 1.5.13
Version: 1.5.13-1
Description: MATLAB MAT File I/O Library
Build-Depends: zlib, hdf5

0 comments on commit 6c3c673

Please sign in to comment.