diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/ecal/0003-fix-dependencies.patch | |
Diffstat (limited to 'vcpkg/ports/ecal/0003-fix-dependencies.patch')
| -rw-r--r-- | vcpkg/ports/ecal/0003-fix-dependencies.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/ecal/0003-fix-dependencies.patch b/vcpkg/ports/ecal/0003-fix-dependencies.patch new file mode 100644 index 0000000..275977f --- /dev/null +++ b/vcpkg/ports/ecal/0003-fix-dependencies.patch @@ -0,0 +1,20 @@ +diff --git a/contrib/ecalhdf5/CMakeLists.txt b/contrib/ecalhdf5/CMakeLists.txt +index c167bacd4..45e754340 100644 +--- a/contrib/ecalhdf5/CMakeLists.txt ++++ b/contrib/ecalhdf5/CMakeLists.txt +@@ -18,9 +18,14 @@ + + project(hdf5 LANGUAGES C CXX) + +-if(NOT CMAKE_CROSSCOMPILING) ++if(1) + find_package(HDF5 COMPONENTS C REQUIRED) + find_package(Threads REQUIRED) ++ if (TARGET hdf5::hdf5-shared) ++ set(ECAL_LINK_HDF5_SHARED 1) ++ else() ++ set(ECAL_LINK_HDF5_SHARED 0) ++ endif() + else() + find_library(hdf5_path NAMES hdf5 REQUIRED PATH_SUFFIXES hdf5/serial) + find_path(hdf5_include NAMES hdf5.h PATH_SUFFIXES hdf5/serial REQUIRED) |