summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-07-23 15:53:52 (GMT)
committerBrad King <brad.king@kitware.com>2001-07-23 15:53:52 (GMT)
commit572ecc9b8ac38f2b1c34577f53af7d3fcd67f6a5 (patch)
tree59d81e2aac24b48fd9bf0373055b0ef6b39e2b81 /Source/cmSystemTools.h
parentdc87e1906d94594b1957c56e4785c184d1743e81 (diff)
downloadCMake-572ecc9b8ac38f2b1c34577f53af7d3fcd67f6a5.zip
CMake-572ecc9b8ac38f2b1c34577f53af7d3fcd67f6a5.tar.gz
CMake-572ecc9b8ac38f2b1c34577f53af7d3fcd67f6a5.tar.bz2
ENH: Added support for non-verbose mode output from running a command. This can be used when it is expected that the command may fail.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index d5566ba..a458b54 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -245,8 +245,12 @@ public:
* Run an executable command and put the stdout in output.
* A temporary file is created in the binaryDir for storing the
* output because windows does not have popen.
+ *
+ * If verbose is false, no user-viewable output from the program
+ * being run will be generated.
*/
- static bool RunCommand(const char* command, std::string& output);
+ static bool RunCommand(const char* command, std::string& output,
+ bool verbose = true);
///! Generate a temporary file name
static std::string TemporaryFileName();