Skip to content

Commit

Permalink
Make sure that cmake generate build files in current dir
Browse files Browse the repository at this point in the history
  • Loading branch information
meowtec committed Nov 22, 2023
1 parent c4a60dd commit 3500856
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ impl Config {
}

cmd.arg(&self.path).current_dir(&build);

cmd.arg("-B").arg(".");

let mut is_ninja = false;
if let Some(ref generator) = generator {
is_ninja = generator.to_string_lossy().contains("Ninja");
Expand Down

0 comments on commit 3500856

Please sign in to comment.