Set CMAKE_SYSTEM_NAME for solaris/illumos
When cross-compiling to solaris/illumos targets, set CMAKE_SYSTEM_NAME to SunOS.
This commit is contained in:
parent
bc96516a28
commit
34352d441a
@ -383,6 +383,8 @@ fn configure_cmake(
|
||||
cfg.define("CMAKE_SYSTEM_NAME", "Windows");
|
||||
} else if target.contains("haiku") {
|
||||
cfg.define("CMAKE_SYSTEM_NAME", "Haiku");
|
||||
} else if target.contains("solaris") || target.contains("illumos") {
|
||||
cfg.define("CMAKE_SYSTEM_NAME", "SunOS");
|
||||
}
|
||||
// When cross-compiling we should also set CMAKE_SYSTEM_VERSION, but in
|
||||
// that case like CMake we cannot easily determine system version either.
|
||||
|
Loading…
x
Reference in New Issue
Block a user