diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-04-22 17:24:20 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-04-22 17:24:20 (GMT) |
commit | d59e06595c986b53cbb7d537e951ea8af07fe11a (patch) | |
tree | 91d4874deab87fac9dcd76f8627c9c5531611427 /Source/kwsys/SystemTools.hxx.in | |
parent | 5ff05c35d1099780fa60849e26c95c25499b9722 (diff) | |
download | CMake-d59e06595c986b53cbb7d537e951ea8af07fe11a.zip CMake-d59e06595c986b53cbb7d537e951ea8af07fe11a.tar.gz CMake-d59e06595c986b53cbb7d537e951ea8af07fe11a.tar.bz2 |
BUG: fix for 301 CMAKE_LIBRARY_PATH and CMAKE_INCLUDE_PATH env vars now used in FIND_LIBRARY and FIND_PATH in addtion to and before PATH
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r-- | Source/kwsys/SystemTools.hxx.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in index fc6acf0..1676ff2 100644 --- a/Source/kwsys/SystemTools.hxx.in +++ b/Source/kwsys/SystemTools.hxx.in @@ -121,9 +121,10 @@ public: static unsigned long FileLength(const char *filename); /** * Add the paths from the environment variable PATH to the - * string vector passed in. + * string vector passed in. If env is set then the value + * of env will be used instead of PATH. */ - static void GetPath(kwsys_stl::vector<kwsys_stl::string>& path); + static void GetPath(kwsys_stl::vector<kwsys_stl::string>& path, const char* env=0); /** Read an environment variable. */ static const char* GetEnv(const char* key); |