mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user