[cmake-developers] Retrieving OS Version in CMake
Brad King
brad.king at kitware.com
Tue Jun 5 11:38:24 EDT 2018
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 28"
> * LINUX_DISTRO: "Fedora 28"
A separate LINUX_DISTRO sounds good, but we'd need to make sure
whatever convention is used for the version (in the name or as
a separate value) makes sense for all distros' conventions.
-Brad
More information about the cmake-developers
mailing list