From 7fc72e6471f641a9c08fe85c2c7d24eda75d10db Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 4 Jun 2008 12:10:52 -0400 Subject: [PATCH] ENH: Allow custom commands with VERBATIM option to have $(SomeVar) make variable replacement. --- Source/cmMakefile.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index a5448a738..26ecab912 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -721,6 +721,7 @@ cmMakefile::AddCustomCommandToTarget(const char* target, std::vector 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& outputs, new cmCustomCommand(outputs, depends2, commandLines, comment, workingDir); cc->SetEscapeOldStyle(escapeOldStyle); + cc->SetEscapeAllowMakeVars(true); file->SetCustomCommand(cc); } }