diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-12-02 17:33:44 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-12-02 17:33:44 (GMT) |
commit | ec6b579717a966d765dfbbc1ed5a16e8ffc769e4 (patch) | |
tree | fb1f5c482d26ae2b64b06f97110052a10cbc7ea5 | |
parent | f445b9491d4ae8dc6d194427aeb0764f1e61c32b (diff) | |
download | CMake-ec6b579717a966d765dfbbc1ed5a16e8ffc769e4.zip CMake-ec6b579717a966d765dfbbc1ed5a16e8ffc769e4.tar.gz CMake-ec6b579717a966d765dfbbc1ed5a16e8ffc769e4.tar.bz2 |
BUG: fix for bug 1385, /tmp should not be used on windows
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 8d7b5bb..b816099 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1594,12 +1594,17 @@ kwsys_stl::string SystemTools::CollapseFullPath(const char* in_relative, if(!initialized) { initialized = 1; + // add some special translation paths for unix + // these are not added for windows because drive + // letters need to be maintained. Also, there + // are not sym-links and mount points on windows anyway. +#if !defined( _WIN32 ) //Also add some good default one: // This one should always be there it fix a bug on sgi SystemTools::AddTranslationPath("/tmp_mnt/", "/"); - //This is a good default also: SystemTools::AddKeepPath("/tmp/"); +#endif } // Now we need to update the translation table with this potentially new path |