cmMakefile: return directories as const std::string&

This commit is contained in:
Vitaly Stakhovsky
2018-08-24 13:58:19 -04:00
committed by Brad King
parent 0897c3cf58
commit c8fd23ec6f
21 changed files with 65 additions and 67 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ bool cmAddCustomCommandCommand::InitialPass(
// Convert working directory to a full path.
if (!working.empty()) {
const char* build_dir = this->Makefile->GetCurrentBinaryDirectory();
const std::string& build_dir = this->Makefile->GetCurrentBinaryDirectory();
working = cmSystemTools::CollapseFullPath(working, build_dir);
}