On 06/05/2018 11:24 AM, Harry Mallon wrote:
> Or is it best to add new fields?
We should only add new fields and revise documentation to match
existing behavior.
> e.g. one of the below?
> * OS_NAME: "Linux" -> "Fedora", OS_RELEASE: "$(uname -r)" -> "28"
> * OS_RELEASE: "$(uname -r)" -> "Fedora
Hi Brad,
I hadn't seen cmake_host_system_information, that is pretty useful. It already
parses "sw_vers" on macOS. "OS_RELEASE" is "10.13.5" for example. So that is
half of the problem. This does mean that "OS_NAME" does not equal
"CMAKE_HOST_SYSTEM_NAME" on macOS, which is indicated by the
On 06/04/2018 01:41 PM, Harry Mallon wrote:
> Would there be a use case for a Module that could retrieve
> OS name and version
We do have these variables:
https://cmake.org/cmake/help/v3.11/variable/CMAKE_HOST_SYSTEM_NAME.html
Hello all,
We have some CMake code that sanity checks the build and checks for our
supported operating systems.
Would there be a use case for a Module that could retrieve OS name and version
(e.g. on macOS parse “sw_vers” to get “Mac OS X” and “10.13.4”, on Linux parse
/etc/os-release to get