ENH: Reduce number of GetCurrentWorkingDirectory
This commit is contained in:
parent
d401fcfc2b
commit
ccf46f544e
@ -2215,7 +2215,7 @@ void cmCTest::ProcessDirectory(cmCTest::tm_VectorOfStrings &passed,
|
|||||||
}
|
}
|
||||||
cres.m_Output = output;
|
cres.m_Output = output;
|
||||||
cres.m_ReturnValue = retVal;
|
cres.m_ReturnValue = retVal;
|
||||||
std::string nwd = cmSystemTools::GetCurrentWorkingDirectory();
|
std::string nwd = it->m_Directory;
|
||||||
if ( nwd.size() > m_ToplevelPath.size() )
|
if ( nwd.size() > m_ToplevelPath.size() )
|
||||||
{
|
{
|
||||||
nwd = "." + nwd.substr(m_ToplevelPath.size(), nwd.npos);
|
nwd = "." + nwd.substr(m_ToplevelPath.size(), nwd.npos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user