diff options
author | Brad King <brad.king@kitware.com> | 2010-12-16 22:41:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-16 22:41:27 (GMT) |
commit | b97760fa5212d34f6bd371bc8841f2bfb5e8b124 (patch) | |
tree | fd9c4049b43745decf3ef1b14e0f64bbac7c1ddb /Source/cmDepends.cxx | |
parent | 63d21c1f8efeb2f2337221119c479d75bbb0b7c0 (diff) | |
download | CMake-b97760fa5212d34f6bd371bc8841f2bfb5e8b124.zip CMake-b97760fa5212d34f6bd371bc8841f2bfb5e8b124.tar.gz CMake-b97760fa5212d34f6bd371bc8841f2bfb5e8b124.tar.bz2 |
Remove call to SystemTools::GetMaximumFilePathLength
The KWSys SystemTools::GetMaximumFilePathLength method is poorly
conceived and should not be used. The cmDepends code honors its own
MaxPath buffer size. Just hard-code it.
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r-- | Source/cmDepends.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx index 69ff858..19558fa 100644 --- a/Source/cmDepends.cxx +++ b/Source/cmDepends.cxx @@ -25,7 +25,7 @@ cmDepends::cmDepends(cmLocalGenerator* lg, const char* targetDir): Verbose(false), FileComparison(0), TargetDirectory(targetDir), - MaxPath(cmSystemTools::GetMaximumFilePathLength()), + MaxPath(16384), Dependee(new char[MaxPath]), Depender(new char[MaxPath]) { |