Skip to content

Commit dee2a1b

Browse files
authored
add parallel flag depending on cmake version. As well as MP flag for VS (#107)
* add parallel flag depending on cmake version. As well as MP flag for VS * Update lib.rs * Update lib.rs * Update lib.rs
1 parent e407504 commit dee2a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ impl Config {
718718
parallel_flags = Some(format!("-j{}", s));
719719
}
720720
Some(ref g) if g.contains("Visual Studio") => {
721-
parallel_flags = Some(format!("/m:{}", s));
721+
parallel_flags = Some(format!("/MP{}", s));
722722
}
723723
Some(ref g) if g.contains("NMake") => {
724724
// NMake creates `Makefile`s, but doesn't understand `-jN`.

0 commit comments

Comments
 (0)