diff --git a/libgit2-sys/build.rs b/libgit2-sys/build.rs index 0ef3021c15..cb30721e2b 100644 --- a/libgit2-sys/build.rs +++ b/libgit2-sys/build.rs @@ -14,7 +14,7 @@ fn main() { let try_to_use_system_libgit2 = !vendored && !zlib_ng_compat; if try_to_use_system_libgit2 { let mut cfg = pkg_config::Config::new(); - if let Ok(lib) = cfg.atleast_version("1.4.0").probe("libgit2") { + if let Ok(lib) = cfg.range_version("1.4.0".."1.5.0").probe("libgit2") { for include in &lib.include_paths { println!("cargo:root={}", include.display()); }