Skip to content

Commit

Permalink
Test versions of fastNLO
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed May 4, 2024
1 parent 6a9b5f1 commit f52469c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion pineappl_fastnlo/build.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
#![allow(missing_docs)]

use std::process::Command;
use pkg_config::Config;
use std::process::Command;

fn main() {
let version = String::from_utf8(
Command::new("applgrid-config")
.arg("--version")
.output()
.expect("did not find `fnlo-tk-config`, please install fastNLO")
.stdout,
)
.unwrap();

let tested_versions = ["2.5.0_2826"];

if !tested_versions
.iter()
.any(|&tested| tested == version.trim())
{
println!(
"cargo:warning=found fastNLO version {}, which has not been tested",
version.trim()
);
}

let fnlo_lib_path = String::from_utf8(
Command::new("fnlo-tk-config")
.arg("--libdir")
Expand Down

0 comments on commit f52469c

Please sign in to comment.