Skip to content

Commit

Permalink
Merge pull request #40 from pema99/main
Browse files Browse the repository at this point in the history
Fix zlib library name (again)
  • Loading branch information
Jhonny Knaak de Vargas authored Jan 27, 2024
2 parents 844038e + dbc13c3 commit 6af06ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ fn lib_names() -> Vec<Library> {
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") {
Expand Down

0 comments on commit 6af06ae

Please sign in to comment.