Skip to content

Commit 975b18f

Browse files
committed
Only include zlib when enabled
1 parent b5494a6 commit 975b18f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hdf5-src/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ fn main() {
4444
.define("ZLIB_STATIC_LIBRARY", zlib_lib);
4545
println!("cargo:zlib_header={}", zlib_header.to_str().unwrap());
4646
println!("cargo:zlib={}", zlib_lib);
47+
} else {
48+
cfg.define("HDF5_ENABLE_Z_LIB_SUPPORT", "OFF");
4749
}
4850

4951
if feature_enabled("DEPRECATED") {

0 commit comments

Comments
 (0)