summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-02-01 16:45:37 (GMT)
committerBrad King <brad.king@kitware.com>2007-02-01 16:45:37 (GMT)
commitd37abb6b5d013ffcdd88d001e95be4f08e19e4f7 (patch)
tree8c0e31081fb57e0a3e8624f4ab63a29c67eee22d /Source/cmSystemTools.h
parentf46704fefe53b81285a545e0214feda64e383648 (diff)
downloadCMake-d37abb6b5d013ffcdd88d001e95be4f08e19e4f7.zip
CMake-d37abb6b5d013ffcdd88d001e95be4f08e19e4f7.tar.gz
CMake-d37abb6b5d013ffcdd88d001e95be4f08e19e4f7.tar.bz2
ENH: Added EscapeWindowsShellArgument and ParseWindowsCommandLine methods to cmSystemTools.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 4997bc3..6165d98 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -211,7 +211,16 @@ public:
* Parse arguments out of a single string command
*/
static std::vector<cmStdString> ParseArguments(const char* command);
-
+
+ /** Parse arguments out of a windows command line string. */
+ static void ParseWindowsCommandLine(const char* command,
+ std::vector<std::string>& args);
+
+ /** Compute an escaped version of the given argument for use in a
+ windows shell. See kwsys/System.h.in for details. */
+ static std::string EscapeWindowsShellArgument(const char* arg,
+ int shell_flags);
+
static void EnableMessages() { s_DisableMessages = false; }
static void DisableMessages() { s_DisableMessages = true; }
static void DisableRunCommandOutput() {s_DisableRunCommandOutput = true; }