Skip to content

Commit

Permalink
Stop always setting CMAKE_SYSTEM_NAME to SunOS for solaris
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
messense authored and thomcc committed Oct 28, 2022
1 parent 16d6bd5 commit cfe11fc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,6 @@ impl Config {
if !self.defined("CMAKE_SYSTEM_NAME") {
self.define("CMAKE_SYSTEM_NAME", "Generic");
}
} else if target.contains("solaris") {
if !self.defined("CMAKE_SYSTEM_NAME") {
self.define("CMAKE_SYSTEM_NAME", "SunOS");
}
} else if target != host && !self.defined("CMAKE_SYSTEM_NAME") {
// Set CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR when cross compiling
let os = getenv_unwrap("CARGO_CFG_TARGET_OS");
Expand Down

0 comments on commit cfe11fc

Please sign in to comment.