Skip to content
Snippets Groups Projects
Commit fd6b260c authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'cmake-host-system-name'

c1aaf8a6 Fix CMAKE_HOST_SYSTEM_NAME on SunOS
parents 8bfa6a00 c1aaf8a6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment