diff options
author | Brad King <brad.king@kitware.com> | 2017-02-28 14:11:40 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2017-02-28 14:11:40 (GMT) |
commit | fd6b260c40509e1ab8a6b548e47634388b84d56b (patch) | |
tree | 9c9cce2711618fa11aa95c1d06f3342162fea4ee /Source | |
parent | 8bfa6a00ea7181b49ca4f604c6b8eeab277f0e7e (diff) | |
parent | c1aaf8a61defe3e01e8526b99d8919b9618d1ba9 (diff) | |
download | CMake-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.cxx | 2 |
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 |