summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-06-04 16:10:52 (GMT)
committerBrad King <brad.king@kitware.com>2008-06-04 16:10:52 (GMT)
commit7fc72e6471f641a9c08fe85c2c7d24eda75d10db (patch)
tree92928ca001c4dd1239637b6655569f095dff21cd /Source/cmMakefile.cxx
parente00a49e2ca5d1287992d1fc7d903654b7cee554e (diff)
downloadCMake-7fc72e6471f641a9c08fe85c2c7d24eda75d10db.zip
CMake-7fc72e6471f641a9c08fe85c2c7d24eda75d10db.tar.gz
CMake-7fc72e6471f641a9c08fe85c2c7d24eda75d10db.tar.bz2
ENH: Allow custom commands with VERBATIM option to have $(SomeVar) make variable replacement.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index a5448a7..26ecab9 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -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);
}
}