summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-14 19:22:52 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-23 14:05:59 (GMT)
commitacd9636d9d5ccc81d07b2cc65fa39dbc02fff436 (patch)
tree523ff651465d095ba2b9d1b4b85e3ec2cb6df890 /Source/cmSystemTools.h
parentd3ea15e80152511946c719404466dfa199532005 (diff)
downloadCMake-acd9636d9d5ccc81d07b2cc65fa39dbc02fff436.zip
CMake-acd9636d9d5ccc81d07b2cc65fa39dbc02fff436.tar.gz
CMake-acd9636d9d5ccc81d07b2cc65fa39dbc02fff436.tar.bz2
cmSystemTools: Add helpers for reading and parsing PATH env vars
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 09f2bf0..7d55d4b 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -399,6 +399,9 @@ public:
static std::string RelativeIfUnder(std::string const& top,
std::string const& in);
+ static cm::optional<std::string> GetEnvVar(std::string const& var);
+ static std::vector<std::string> SplitEnvPath(std::string const& value);
+
#ifndef CMAKE_BOOTSTRAP
/** Remove an environment variable */
static bool UnsetEnv(const char* value);