GHS: Shorten long object paths with duplicate source names

Detect when the resulting object path is too long and compute an
alternative name using a hash.
This commit is contained in:
Geoff Viola
2016-05-04 22:49:27 -06:00
committed by Brad King
parent 8d7ef6a8b0
commit 5e4287131b
4 changed files with 87 additions and 26 deletions

View File

@@ -404,4 +404,10 @@ private:
void ComputeObjectMaxPath();
};
#if defined(CMAKE_BUILD_WITH_CMAKE)
bool cmLocalGeneratorCheckObjectName(std::string &objName,
std::string::size_type dir_len,
std::string::size_type max_total_len);
#endif
#endif