Skip to content

Commit

Permalink
Use vcpkg for all Windows targets
Browse files Browse the repository at this point in the history
  • Loading branch information
micolous authored and Byron committed Jul 23, 2023
1 parent 0b1d46e commit c5ac21e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ libc = { version = "0.2.43", optional = true }
pkg-config = "0.3.9"
cc = "1.0.18"
cmake = { version = "0.1.44", optional = true }

[target.'cfg(target_env = "msvc")'.build-dependencies]
vcpkg = "0.2"

[features]
Expand Down
8 changes: 1 addition & 7 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn main() {
}
}

if target.contains("msvc") {
if target.contains("windows") {
if try_vcpkg() {
return;
}
Expand Down Expand Up @@ -158,12 +158,6 @@ mod build_zng;
#[cfg(feature = "zlib-ng")]
use build_zng::build_zlib_ng;

#[cfg(not(target_env = "msvc"))]
fn try_vcpkg() -> bool {
false
}

#[cfg(target_env = "msvc")]
fn try_vcpkg() -> bool {
// see if there is a vcpkg tree with zlib installed
match vcpkg::Config::new()
Expand Down

0 comments on commit c5ac21e

Please sign in to comment.