diff options
author | Brad King <brad.king@kitware.com> | 2007-12-13 22:56:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-12-13 22:56:50 (GMT) |
commit | 9f61e2a235fc04e57237dc932aee61b264ef8916 (patch) | |
tree | 482f697639a0e55198f198eaf67282f088dee202 /Source/cmSystemTools.h | |
parent | ebc036bbdaa602c9276ad91469a305b42fda7cbc (diff) | |
download | CMake-9f61e2a235fc04e57237dc932aee61b264ef8916.zip CMake-9f61e2a235fc04e57237dc932aee61b264ef8916.tar.gz CMake-9f61e2a235fc04e57237dc932aee61b264ef8916.tar.bz2 |
ENH: Centralized and globalized computation of CMake program locations. This eliminates startup paths that failed to produce this information.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 8 |
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; |