cmLocalGenerator: return directories as const std::string&

This commit is contained in:
Vitaly Stakhovsky
2018-08-24 09:43:35 -04:00
committed by Brad King
parent e33c6c357b
commit 50fbfee3a0
11 changed files with 21 additions and 22 deletions
+1 -1
View File
@@ -1014,7 +1014,7 @@ void cmGlobalVisualStudio10Generator::PathTooLong(cmGeneratorTarget* target,
std::string const& sfRel)
{
size_t len =
(strlen(target->GetLocalGenerator()->GetCurrentBinaryDirectory()) + 1 +
(target->GetLocalGenerator()->GetCurrentBinaryDirectory().length() + 1 +
sfRel.length());
if (len > this->LongestSource.Length) {
this->LongestSource.Length = len;