ENH: Allow custom commands with VERBATIM option to have $(SomeVar) make variable replacement.

This commit is contained in:
Brad King 2008-06-04 12:10:52 -04:00
parent e00a49e2ca
commit 7fc72e6471
1 changed files with 2 additions and 0 deletions

View File

@ -721,6 +721,7 @@ cmMakefile::AddCustomCommandToTarget(const char* target,
std::vector<std::string> no_output;
cmCustomCommand cc(no_output, depends, commandLines, comment, workingDir);
cc.SetEscapeOldStyle(escapeOldStyle);
cc.SetEscapeAllowMakeVars(true);
switch(type)
{
case cmTarget::PRE_BUILD:
@ -834,6 +835,7 @@ cmMakefile::AddCustomCommandToOutput(const std::vector<std::string>& outputs,
new cmCustomCommand(outputs, depends2, commandLines,
comment, workingDir);
cc->SetEscapeOldStyle(escapeOldStyle);
cc->SetEscapeAllowMakeVars(true);
file->SetCustomCommand(cc);
}
}