Skip to content
Snippets Groups Projects
Commit 7c242243 authored by Jay Lee's avatar Jay Lee
Browse files

show help message when pkg-config is missing

parent 42ad50ae
Branches
Tags
No related merge requests found
......@@ -197,10 +197,15 @@ fn try_pkg_config() {
return
}
let lib = pkg_config::Config::new()
let lib = match pkg_config::Config::new()
.print_system_libs(false)
.find("openssl")
.unwrap();
.find("openssl") {
Ok(lib) => lib,
Err(e) => {
println!("run pkg_config fail: {:?}", e);
return;
}
};
validate_headers(&lib.include_paths);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment