diff options
author | Brad King <brad.king@kitware.com> | 2007-03-16 14:34:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-16 14:34:25 (GMT) |
commit | 1f639ee76cdf0f2a22d99892b7d7a79de2d79fb4 (patch) | |
tree | 441301a561d9488ee57afb5d86f77629fc27e602 /Source/cmLocalGenerator.h | |
parent | 77da3d9b7944f1fdc8d45c35ffe6653e700d7f68 (diff) | |
download | CMake-1f639ee76cdf0f2a22d99892b7d7a79de2d79fb4.zip CMake-1f639ee76cdf0f2a22d99892b7d7a79de2d79fb4.tar.gz CMake-1f639ee76cdf0f2a22d99892b7d7a79de2d79fb4.tar.bz2 |
ENH: Added computation of object file names that are almost always short enough to not exceed the filesystem path length limitation. This is useful when a source file from outside the tree is referenced with a long full path. The object file name previously would contain the entire path which when combined with the build output directory could exceed the filesystem limit. Now CMake recognizes this case and replaces enough of the beginning of the full path to the source file with an md5sum of the replaced portion to make the name fit on disk. This addresses bug#4520.
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r-- | Source/cmLocalGenerator.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index b0d0610..6519889 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -266,8 +266,10 @@ protected: std::vector<std::string> const& configurationTypes); // Compute object file names. - std::string GetObjectFileNameWithoutTarget(const cmSourceFile& source); - std::string& CreateSafeUniqueObjectFileName(const char* sin); + std::string GetObjectFileNameWithoutTarget(const cmSourceFile& source, + std::string::size_type dir_len); + std::string& CreateSafeUniqueObjectFileName(const char* sin, + std::string::size_type dir_len); void ConfigureRelativePaths(); std::string FindRelativePathTopSource(); |