Skip to content

Commit

Permalink
fix(cadiback): include cadical header
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Nov 15, 2024
1 parent 7aa9b8a commit 0c548db
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion d4-cadiback-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
use std::env;

fn main() {
let build = cmake::build("cadiback");
let build = cmake::Config::new("cadiback")
.define(
"CMAKE_INCLUDE_PATH",
env::var("DEP_CADICAL_INCLUDE").unwrap(),
)
.cxxflag(format!(
"-isystem {}",
env::var("DEP_CADICAL_INCLUDE").unwrap()
))
.build();

println!("cargo::metadata=INCLUDE={}/include", build.display());
println!("cargo::rustc-link-search=native={}/lib", build.display());
}

0 comments on commit 0c548db

Please sign in to comment.