cmMakefile: Refactor AddCMakeDependFile and AddCMakeOutputFile.

AddCMakeDependFile and AddCMakeOutputFile both store as std::string
and all calling sites use std::string. So instead of creating more
temporary objects, lets just use std::strings.
This commit is contained in:
Robert Maynard
2013-06-18 13:41:50 -04:00
parent 0bd82cb1a7
commit 6dbd4a5f17
4 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
// Add dependencies on any non-temporary sources.
if(si->find("CMakeTmp") == si->npos)
{
this->Makefile->AddCMakeDependFile(si->c_str());
this->Makefile->AddCMakeDependFile(*si);
}
}
fprintf(fout, ")\n");