Skip to content

Commit

Permalink
Switch back from -isystem on eigen include
Browse files Browse the repository at this point in the history
  • Loading branch information
h33p committed Apr 10, 2022
1 parent ce565e2 commit 219cf80
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions libmv-rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ fn main() {

let mut builder = cc::Build::new();

let build = builder.cpp(true).files(src.iter()).include("libmv/src/");

if let Ok(true) = build.is_flag_supported("-isystem libmv/src/third_party/eigen") {
build.flag_if_supported("-isystem libmv/src/third_party/eigen");
} else {
build.include("libmv/src/third_party/eigen");
}
// Disable warnings coming from eigen
let build = builder
.cpp(true)
.files(src.iter())
.include("libmv/src/")
.include("libmv/src/third_party/eigen")
.flag_if_supported("-Wno-deprecated-declarations")
.flag_if_supported("-Wno-ignored-attributes")
.flag_if_supported("-Wno-int-in-bool-context")
.flag_if_supported("-Wno-deprecated-copy")
.flag_if_supported("-Wno-misleading-indentation");

build.compile("libmv-c");

Expand Down

0 comments on commit 219cf80

Please sign in to comment.