summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-12-16 20:55:18 (GMT)
committerBrad King <brad.king@kitware.com>2003-12-16 20:55:18 (GMT)
commit8ca149d34f7150251a6fc32856ce5ac4968fce68 (patch)
tree13a2375b9813af343edb1d8d07492e5f40813c21 /Source/kwsys/SystemTools.hxx.in
parent40ea4b67619069a62f0a6263c817c5e50e645b8b (diff)
downloadCMake-8ca149d34f7150251a6fc32856ce5ac4968fce68.zip
CMake-8ca149d34f7150251a6fc32856ce5ac4968fce68.tar.gz
CMake-8ca149d34f7150251a6fc32856ce5ac4968fce68.tar.bz2
ENH: Added GetEnv method.
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index 98556d1..1870609 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -124,6 +124,10 @@ public:
*/
static void GetPath(kwsys_std::vector<kwsys_std::string>& path);
+ /** Read an environment variable. */
+ static const char* GetEnv(const char* key);
+ static bool GetEnv(const char* key, std::string& result);
+
/**
* Get the file extension (including ".") needed for an executable
* on the current platform ("" for unix, ".exe" for Windows).