aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vtk/FindHDF5.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/vtk/FindHDF5.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/vtk/FindHDF5.cmake')
-rw-r--r--vcpkg/ports/vtk/FindHDF5.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/vtk/FindHDF5.cmake b/vcpkg/ports/vtk/FindHDF5.cmake
new file mode 100644
index 0000000..9d92970
--- /dev/null
+++ b/vcpkg/ports/vtk/FindHDF5.cmake
@@ -0,0 +1,22 @@
+find_package(hdf5 CONFIG REQUIRED)
+if(NOT TARGET hdf5::hdf5 AND (TARGET hdf5::hdf5-static OR TARGET hdf5::hdf5-shared))
+ add_library(hdf5::hdf5 INTERFACE IMPORTED)
+ if(TARGET hdf5::hdf5-shared)
+ target_link_libraries(hdf5::hdf5 INTERFACE hdf5::hdf5-shared)
+ elseif(TARGET hdf5::hdf5-static)
+ target_link_libraries(hdf5::hdf5 INTERFACE hdf5::hdf5-static)
+ endif()
+endif()
+
+if(NOT TARGET hdf5::hdf5_hl AND (TARGET hdf5::hdf5_hl-static OR TARGET hdf5::hdf5_hl-shared))
+ add_library(hdf5::hdf5_hl INTERFACE IMPORTED)
+ if(TARGET hdf5::hdf5_hl-shared)
+ target_link_libraries(hdf5::hdf5_hl INTERFACE hdf5::hdf5_hl-shared)
+ elseif(TARGET hdf5::hdf5_hl-static)
+ target_link_libraries(hdf5::hdf5_hl INTERFACE hdf5::hdf5_hl-static)
+ endif()
+endif()
+
+set(HDF5_IS_PARALLEL "${HDF5_ENABLE_PARALLEL}" CACHE BOOL "" FORCE)
+set(HDF5_FOUND ON CACHE BOOL "" FORCE)
+set(hdf5_FOUND ON CACHE BOOL "" FORCE)