Skip to content

Commit

Permalink
Apply vcpkg patch
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBoosY authored and tbeu committed Mar 29, 2024
1 parent 7111281 commit e6aeb69
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmake/thirdParties.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ if(HDF5_FOUND)
elseif(TARGET hdf5)
# target from hdf5 1.8 config
target_link_libraries(MATIO::HDF5 INTERFACE hdf5)
elseif(TARGET HDF5::HDF5)
elseif(TARGET hdf5::hdf5-shared)
# target defined in CMake FindHDF5 (since 3.19)
target_link_libraries(MATIO::HDF5 INTERFACE HDF5::HDF5)
else()
target_link_libraries(MATIO::HDF5 INTERFACE hdf5::hdf5-shared)
elseif(TARGET hdf5::hdf5-static)
# target defined in CMake FindHDF5 (since 3.19)
target_link_libraries(MATIO::HDF5 INTERFACE hdf5-static)
else()
# results from CMake FindHDF5
set_target_properties(MATIO::HDF5 PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${HDF5_INCLUDE_DIRS}"
Expand Down

0 comments on commit e6aeb69

Please sign in to comment.