We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39388e2 + 8b6940b commit 1308b0eCopy full SHA for 1308b0e
src/lib.rs
@@ -339,7 +339,7 @@ impl Config {
339
340
// Build up the first cmake command to build the build system.
341
let executable = env::var("CMAKE").unwrap_or("cmake".to_owned());
342
- let mut cmd = Command::new(executable);
+ let mut cmd = Command::new(&executable);
343
344
if self.verbose_cmake {
345
cmd.arg("-Wdev");
@@ -672,7 +672,7 @@ impl Config {
672
673
// And build!
674
let target = self.cmake_target.clone().unwrap_or("install".to_string());
675
- let mut cmd = Command::new("cmake");
676
for &(ref k, ref v) in c_compiler.env().iter().chain(&self.env) {
677
cmd.env(k, v);
678
}
0 commit comments