diff options
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r-- | Source/cmAddCustomTargetCommand.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx index ccdc8a9..d9879cf 100644 --- a/Source/cmAddCustomTargetCommand.cxx +++ b/Source/cmAddCustomTargetCommand.cxx @@ -58,12 +58,14 @@ bool cmAddCustomTargetCommand::InitialPass( // Accumulate dependencies. std::vector<std::string> depends; std::string working_directory; + bool verbatim = false; // Keep track of parser state. enum tdoing { doing_command, doing_depends, - doing_working_directory + doing_working_directory, + doing_verbatim }; tdoing doing = doing_command; @@ -92,6 +94,11 @@ bool cmAddCustomTargetCommand::InitialPass( { doing = doing_working_directory; } + else if(copy == "VERBATIM") + { + doing = doing_verbatim; + verbatim = true; + } else if(copy == "COMMAND") { doing = doing_command; @@ -141,10 +148,11 @@ bool cmAddCustomTargetCommand::InitialPass( } // Add the utility target to the makefile. + bool escapeOldStyle = !verbatim; const char* no_output = 0; this->Makefile->AddUtilityCommand(args[0].c_str(), all, no_output, working_directory.c_str(), depends, - commandLines); + commandLines, escapeOldStyle); return true; } |