From 503dcbfc5b6d0d91bf1be1b0e445f2c1b071004e Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Sun, 5 Nov 2023 12:58:50 +0100 Subject: [PATCH] Link shlwapi on windows --- hdf5-sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hdf5-sys/build.rs b/hdf5-sys/build.rs index 7e2ab4cd..a27c5dfa 100644 --- a/hdf5-sys/build.rs +++ b/hdf5-sys/build.rs @@ -684,6 +684,10 @@ impl Config { println!("cargo:rustc-cfg=feature=\"have-filter-deflate\""); println!("cargo:have_filter_deflate=1"); } + + if cfg!(windows) && version >= Version::new(1, 14, 0) { + println!("cargo:rustc-link-lib=shlwapi"); + } } fn check_against_features_required(&self) {