Skip to content

Commit 1308b0e

Browse files
authored
Merge pull request #74 from Crosse/fix-cmake-path
Use CMAKE envvar for both invocations of cmake
2 parents 39388e2 + 8b6940b commit 1308b0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ impl Config {
339339

340340
// Build up the first cmake command to build the build system.
341341
let executable = env::var("CMAKE").unwrap_or("cmake".to_owned());
342-
let mut cmd = Command::new(executable);
342+
let mut cmd = Command::new(&executable);
343343

344344
if self.verbose_cmake {
345345
cmd.arg("-Wdev");
@@ -672,7 +672,7 @@ impl Config {
672672

673673
// And build!
674674
let target = self.cmake_target.clone().unwrap_or("install".to_string());
675-
let mut cmd = Command::new("cmake");
675+
let mut cmd = Command::new(&executable);
676676
for &(ref k, ref v) in c_compiler.env().iter().chain(&self.env) {
677677
cmd.env(k, v);
678678
}

0 commit comments

Comments
 (0)