diff options
| author | Alexander Neumann <Alexander.Neumann@hamburg.de> | 2019-03-14 22:33:28 +0100 |
|---|---|---|
| committer | Alexander Neumann <Alexander.Neumann@hamburg.de> | 2019-03-14 22:33:28 +0100 |
| commit | 6c3c6737ba3c32f6d38f9d4ea0106a1e23e7b7da (patch) | |
| tree | 17b38b05a38c9c9c1696e8a7ab8822f3146f0e4b | |
| parent | 9ac08b34ce7cc0fa8bf06ba05be248e9912af727 (diff) | |
| download | vcpkg-6c3c6737ba3c32f6d38f9d4ea0106a1e23e7b7da.tar.gz vcpkg-6c3c6737ba3c32f6d38f9d4ea0106a1e23e7b7da.zip | |
fixes #5562
| -rw-r--r-- | ports/matio/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | ports/matio/CONTROL | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/ports/matio/CMakeLists.txt b/ports/matio/CMakeLists.txt index 6c21bbf53..d7b6bb61b 100644 --- a/ports/matio/CMakeLists.txt +++ b/ports/matio/CMakeLists.txt @@ -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( diff --git a/ports/matio/CONTROL b/ports/matio/CONTROL index df97421cf..659c46fca 100644 --- a/ports/matio/CONTROL +++ b/ports/matio/CONTROL @@ -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 |
