]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/vtk/FindHDF5.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / vtk / FindHDF5.cmake
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/vtk/FindHDF5.cmake b/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/vtk/FindHDF5.cmake
new file mode 100644 (file)
index 0000000..1be1573
--- /dev/null
@@ -0,0 +1,23 @@
+#The original VTK file is overdoing it and still prdouces errors that the target hdf5::hdf5_hl-shared cannot be found in dynamic builds\r
+find_package(hdf5 QUIET NO_MODULE)\r
+if(TARGET hdf5::hdf5-shared)\r
+  set_target_properties(hdf5::hdf5-shared PROPERTIES IMPORTED_GLOBAL TRUE)\r
+  add_library(hdf5::hdf5 ALIAS hdf5::hdf5-shared)\r
+elseif(TARGET hdf5::hdf5-static)\r
+  set_target_properties(hdf5::hdf5-static PROPERTIES IMPORTED_GLOBAL TRUE)\r
+  add_library(hdf5::hdf5 ALIAS hdf5::hdf5-static)\r
+else()\r
+  message(FATAL_ERROR "HDF5 target not found")\r
+endif()\r
+if(TARGET hdf5::hdf5_hl-shared)\r
+  set_target_properties(hdf5::hdf5_hl-shared PROPERTIES IMPORTED_GLOBAL TRUE)\r
+  add_library(hdf5::hdf5_hl ALIAS hdf5::hdf5_hl-shared)\r
+elseif(TARGET hdf5::hdf5_hl-static)\r
+  set_target_properties(hdf5::hdf5_hl-static PROPERTIES IMPORTED_GLOBAL TRUE)\r
+  add_library(hdf5::hdf5_hl ALIAS hdf5::hdf5_hl-static)\r
+else()\r
+  message(FATAL_ERROR "HDF5 HL target not found")\r
+endif()\r
+set(HDF5_IS_PARALLEL ${HDF5_ENABLE_PARALLEL} CACHE BOOL "" FORCE)\r
+set(HDF5_FOUND ON CACHE BOOL "" FORCE)\r
+set(hdf5_FOUND ON CACHE BOOL "" FORCE)\r