diff options
author | Brad King <brad.king@kitware.com> | 2013-11-15 13:31:00 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-15 14:40:55 -0500 |
commit | 0814d0a6559ed3634dafb372f34491407a27c5e8 (patch) | |
tree | 3d007775dc63f56ed46a30e02eb54d8c8ab4c356 /Source/cmSystemTools.h | |
parent | ee6e4ac841d8094b59cd0a48c61d7ca3b68c68c2 (diff) | |
download | cmake-0814d0a6559ed3634dafb372f34491407a27c5e8.tar.gz |
cmSystemTools: Add PrintSingleCommand method
Add a method to print a command line for human reference by simply
double-quoting every argument.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 95c7029257..4e854c8c5c 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -239,6 +239,8 @@ public: OutputOption outputflag = OUTPUT_MERGE, double timeout = 0.0); + static std::string PrintSingleCommand(std::vector<std::string> const&); + /** * Parse arguments out of a single string command */ |