mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-07-30 20:58:45 +00:00
fix: dont put quotes for cmake var values that contain spaces
This commit is contained in:
parent
e3ee44b1c4
commit
17554fa2dc
1 changed files with 1 additions and 5 deletions
|
@ -22,11 +22,7 @@ impl Cmake {
|
|||
if k.contains(' ') {
|
||||
panic!("Cmake vars cannot contain spaces!");
|
||||
}
|
||||
if v.contains(' ') {
|
||||
args.push(format!("-D{k}=\"{v}\"", k = k, v = v));
|
||||
} else {
|
||||
args.push(format!("-D{k}={v}", k = k, v = v));
|
||||
}
|
||||
args.push(format!("-D{k}={v}", k = k, v = v));
|
||||
}
|
||||
}
|
||||
args.push(self.source_dir.to_string_lossy().to_string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue