Skip to content

Commit 7aad547

Browse files
committed
Try including shlwapi on windows
1 parent c15d48c commit 7aad547

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hdf5-sys/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,4 +746,8 @@ fn get_build_and_emit() {
746746
let header = Header::parse(&hdf5_incdir);
747747
let config = Config { header, inc_dir: "".into(), link_paths: Vec::new() };
748748
config.emit_cfg_flags();
749+
750+
if cfg!(windows) && config.header.version >= Version::new(1, 14, 0) {
751+
println!("cargo:rustc-link-lib=shlwapi");
752+
}
749753
}

0 commit comments

Comments
 (0)