Skip to content

Commit

Permalink
Try including shlwapi on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mulimoen committed Nov 5, 2023
1 parent c15d48c commit 7aad547
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hdf5-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,4 +746,8 @@ fn get_build_and_emit() {
let header = Header::parse(&hdf5_incdir);
let config = Config { header, inc_dir: "".into(), link_paths: Vec::new() };
config.emit_cfg_flags();

if cfg!(windows) && config.header.version >= Version::new(1, 14, 0) {
println!("cargo:rustc-link-lib=shlwapi");
}
}

0 comments on commit 7aad547

Please sign in to comment.