File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ library.
13
13
cmake = " 0.2"
14
14
```
15
15
16
+ The CMake executable is assumed to be ` cmake ` unless the ` CMAKE `
17
+ environmental variable is set.
18
+
16
19
# License
17
20
18
21
This project is licensed under either of
Original file line number Diff line number Diff line change @@ -297,7 +297,8 @@ impl Config {
297
297
let cmake_prefix_path = env:: join_paths ( & cmake_prefix_path) . unwrap ( ) ;
298
298
299
299
// Build up the first cmake command to build the build system.
300
- let mut cmd = Command :: new ( "cmake" ) ;
300
+ let executable = env:: var ( "CMAKE" ) . unwrap_or ( "cmake" . to_owned ( ) ) ;
301
+ let mut cmd = Command :: new ( executable) ;
301
302
cmd. arg ( & self . path )
302
303
. current_dir ( & build) ;
303
304
if target. contains ( "windows-gnu" ) {
You can’t perform that action at this time.
0 commit comments