summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 9007537..bbc9ba6 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -350,6 +350,14 @@ public:
the first argument to that named by the second. */
static bool CopyFileTime(const char* fromFile, const char* toFile);
+ /** Find the directory containing the running executable. Save it
+ in a global location to be queried by GetExecutableDirectory
+ later. */
+ static void FindExecutableDirectory(const char* argv0);
+
+ /** Get the directory containing the currently running executable. */
+ static const char* GetExecutableDirectory();
+
private:
static bool s_ForceUnixPaths;
static bool s_RunCommandHideConsole;