diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 82e197e1c5..a2a75aa49d 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -34,17 +34,15 @@ fn main() { } // Next, fall back and try to use pkg-config if its available. - if !target.contains("windows") { - match pkg_config::find_library("libcurl") { - Ok(lib) => { - for path in lib.include_paths.iter() { - println!("cargo:include={}", path.display()); - } - return + match pkg_config::find_library("libcurl") { + Ok(lib) => { + for path in lib.include_paths.iter() { + println!("cargo:include={}", path.display()); } - Err(e) => println!("Couldn't find libcurl from \ - pkgconfig ({:?}), compiling it from source...", e), + return } + Err(e) => println!("Couldn't find libcurl from \ + pkgconfig ({:?}), compiling it from source...", e), } if !Path::new("curl/.git").exists() {