diff options
author | Brad King <brad.king@kitware.com> | 2008-06-04 16:10:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-06-04 16:10:52 (GMT) |
commit | 7fc72e6471f641a9c08fe85c2c7d24eda75d10db (patch) | |
tree | 92928ca001c4dd1239637b6655569f095dff21cd /Source/cmMakefile.cxx | |
parent | e00a49e2ca5d1287992d1fc7d903654b7cee554e (diff) | |
download | CMake-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.cxx | 2 |
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); } } |