summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-28 14:11:40 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-02-28 14:11:40 (GMT)
commitfd6b260c40509e1ab8a6b548e47634388b84d56b (patch)
tree9c9cce2711618fa11aa95c1d06f3342162fea4ee /Source
parent8bfa6a00ea7181b49ca4f604c6b8eeab277f0e7e (diff)
parentc1aaf8a61defe3e01e8526b99d8919b9618d1ba9 (diff)
downloadCMake-fd6b260c40509e1ab8a6b548e47634388b84d56b.zip
CMake-fd6b260c40509e1ab8a6b548e47634388b84d56b.tar.gz
CMake-fd6b260c40509e1ab8a6b548e47634388b84d56b.tar.bz2
Merge topic 'cmake-host-system-name'
c1aaf8a6 Fix CMAKE_HOST_SYSTEM_NAME on SunOS
Diffstat (limited to 'Source')
-rw-r--r--Source/cmStateSnapshot.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStateSnapshot.cxx b/Source/cmStateSnapshot.cxx
index 80e494b..d2c9d73 100644
--- a/Source/cmStateSnapshot.cxx
+++ b/Source/cmStateSnapshot.cxx
@@ -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