Refactor: Add cmSystemTools::GetSystemName()

And use it for CMAKE_HOST_SYSTEM_NAME and CMAKE_SYSTEM_NAME.
This commit is contained in:
Kyle Edwards
2021-03-11 12:02:13 -05:00
parent 336c57edd0
commit ad19da011d
5 changed files with 88 additions and 66 deletions
@@ -0,0 +1,10 @@
cmake-system-name-version
-------------------------
* :variable:`CMAKE_HOST_SYSTEM_NAME`'s undocumented version-stripping behavior
has been moved earlier, before :command:`project` or
:command:`enable_language` is called.
* :variable:`CMAKE_SYSTEM_NAME`'s undocumented version-stripping behavior has
been removed entirely. If it is set by a ``-D`` flag or by a
:manual:`toolchain file <cmake-toolchains(7)>`, it is left unaltered, even if
it still contains a version number.