Skip to content

Commit

Permalink
Merge pull request #35 from ids1024/redox
Browse files Browse the repository at this point in the history
Define CMAKE_SYSTEM_NAME when compiling for Redox
  • Loading branch information
alexcrichton committed Jul 24, 2017
2 parents b78c02d + 8b2d64c commit cea0df2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Expand Up @@ -314,6 +314,10 @@ impl Config {
if self.generator.is_none() {
cmd.arg("-G").arg(self.visual_studio_generator(&target));
}
} else if target.contains("redox") {
if !self.defined("CMAKE_SYSTEM_NAME") {
cmd.arg("-DCMAKE_SYSTEM_NAME=Generic");
}
}
let mut is_ninja = false;
if let Some(ref generator) = self.generator {
Expand Down

0 comments on commit cea0df2

Please sign in to comment.