summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-03-11 17:02:13 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-03-15 18:41:42 (GMT)
commitad19da011d5702da3407a17bf45f3d39ec651639 (patch)
treea8c4440732b29c0ac4ef71ce42087d2f0b5c1b2b /Source/cmSystemTools.h
parent336c57edd08354ecbda007491a1820b6371911b2 (diff)
downloadCMake-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.h3
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;