mirror of
https://github.com/georust/netcdf.git
synced 2025-12-08 19:25:14 +00:00
Small comments
This commit is contained in:
parent
84976a41ce
commit
ea4f4da471
@ -89,14 +89,14 @@ fn main() {
|
||||
|
||||
let netcdf = netcdf_config.build();
|
||||
|
||||
// Only forward link options to netcdf-sys, so netcdf-sys can
|
||||
// optionally choose not to use this build
|
||||
println!("cargo::metadata=lib=netcdf");
|
||||
let search_path = format!("{}/lib", netcdf.display());
|
||||
if std::path::Path::new(&search_path).exists() {
|
||||
println!("cargo::metadata=search={search_path}");
|
||||
println!("cargo::rustc-link-search={}", search_path);
|
||||
} else {
|
||||
let search_path = format!("{}/lib64", netcdf.display());
|
||||
println!("cargo::metadata=search={search_path}");
|
||||
println!("cargo::rustc-link-search={}", search_path);
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,6 +14,7 @@ readme = "../README.md"
|
||||
categories = ["science", "filesystem"]
|
||||
exclude = ["examples/**", "tests/**"]
|
||||
build = "build.rs"
|
||||
rust-version = "1.77"
|
||||
|
||||
[features]
|
||||
default = ["ndarray"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user