diff --git a/build.rs b/build.rs index 78e9385..07584f1 100644 --- a/build.rs +++ b/build.rs @@ -47,7 +47,11 @@ fn lib_names() -> Vec { if build_assimp() && build_zlib() { names.push(Library("zlibstatic", "static")); } else { - names.push(Library("z", "dylib")); + if cfg!(target_os = "windows") { + names.push(Library("zlibstatic", "dylib")); + } else { + names.push(Library("z", "dylib")); + } } if cfg!(target_os = "linux") {