Small comments

This commit is contained in:
Magnus Ulimoen 2024-05-05 12:46:38 +02:00
parent 84976a41ce
commit ea4f4da471
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -14,6 +14,7 @@ readme = "../README.md"
categories = ["science", "filesystem"]
exclude = ["examples/**", "tests/**"]
build = "build.rs"
rust-version = "1.77"
[features]
default = ["ndarray"]