diff options
author | Brad King <brad.king@kitware.com> | 2023-02-14 19:22:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-02-23 14:05:59 (GMT) |
commit | acd9636d9d5ccc81d07b2cc65fa39dbc02fff436 (patch) | |
tree | 523ff651465d095ba2b9d1b4b85e3ec2cb6df890 /Source/cmSystemTools.h | |
parent | d3ea15e80152511946c719404466dfa199532005 (diff) | |
download | CMake-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.h | 3 |
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); |