diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-03-11 17:02:13 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-03-15 18:41:42 (GMT) |
commit | ad19da011d5702da3407a17bf45f3d39ec651639 (patch) | |
tree | a8c4440732b29c0ac4ef71ce42087d2f0b5c1b2b /Source/cmSystemTools.h | |
parent | 336c57edd08354ecbda007491a1820b6371911b2 (diff) | |
download | CMake-ad19da011d5702da3407a17bf45f3d39ec651639.zip CMake-ad19da011d5702da3407a17bf45f3d39ec651639.tar.gz CMake-ad19da011d5702da3407a17bf45f3d39ec651639.tar.bz2 |
Refactor: Add cmSystemTools::GetSystemName()
And use it for CMAKE_HOST_SYSTEM_NAME and CMAKE_SYSTEM_NAME.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 2ff4c5d..5620899 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -498,6 +498,9 @@ public: const std::string& newName, std::string* errorMessage = nullptr); + /** Get the system name. */ + static cm::string_view GetSystemName(); + private: static bool s_ForceUnixPaths; static bool s_RunCommandHideConsole; |