Skip to content

Commit cea0df2

Browse files
authored
Merge pull request #35 from ids1024/redox
Define CMAKE_SYSTEM_NAME when compiling for Redox
2 parents b78c02d + 8b2d64c commit cea0df2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ impl Config {
314314
if self.generator.is_none() {
315315
cmd.arg("-G").arg(self.visual_studio_generator(&target));
316316
}
317+
} else if target.contains("redox") {
318+
if !self.defined("CMAKE_SYSTEM_NAME") {
319+
cmd.arg("-DCMAKE_SYSTEM_NAME=Generic");
320+
}
317321
}
318322
let mut is_ninja = false;
319323
if let Some(ref generator) = self.generator {

0 commit comments

Comments
 (0)