mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'cmake-host-system-name'
c1aaf8a6 Fix CMAKE_HOST_SYSTEM_NAME on SunOS
This commit is contained in:
@@ -308,7 +308,7 @@ void cmStateSnapshot::SetDefaultDefinitions()
|
||||
this->SetDefinition("CMAKE_HOST_UNIX", "1");
|
||||
|
||||
struct utsname uts_name;
|
||||
if (uname(&uts_name) == 0) {
|
||||
if (uname(&uts_name) >= 0) {
|
||||
this->SetDefinition("CMAKE_HOST_SYSTEM_NAME", uts_name.sysname);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user