Skip to content

Commit

Permalink
Guard on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pema99 committed Jan 26, 2024
1 parent 6d04eb4 commit dbc13c3
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("zlibstatic", "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 dbc13c3

Please sign in to comment.