mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
cmLocalGenerator: return directories as const std::string&
This commit is contained in:
committed by
Brad King
parent
e33c6c357b
commit
50fbfee3a0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user