summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-04 15:30:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-04 15:30:46 (GMT)
commitde10cfc72e51094d3a8f3a8d10f09a902330a2f3 (patch)
tree19175a07cd503bb427d1f394dc9a7d555b28246f /Source/cmSystemTools.h
parent33e1a4a09aaedfcb869e2f4217815e09f0d3187f (diff)
downloadCMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.zip
CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.tar.gz
CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.tar.bz2
ENH: move testing stuff to cmake from configure, good bye dashboard... :)
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 3c6fd45..3830ad3 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -177,6 +177,17 @@ public:
static long int ModifiedTime(const char* filename);
+ /**
+ * 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.
+ */
+ static bool RunCommand(const char* command,
+ std::string& output);
+
+ ///! Generate a temporary file name
+ static std::string TemporaryFileName();
+
private:
static bool s_ErrorOccured;
};