Skip to content

Fix CMAKE_HOST_SYSTEM_NAME on SunOS

Brad King requested to merge brad.king/cmake:cmake-host-system-name into master

In !499 (merged) we added a call to uname that checks for a zero return value. However, on Solaris the uname(2) manual says that on success a non-negative value is returned. Fix our return code check so that we detect the SunOS name correctly.

Merge request reports