summaryrefslogtreecommitdiff
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-05-04 13:57:47 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2021-05-11 18:16:08 +0200
commitf5fa6d53b07d5c6224de2a491856a36fe3516218 (patch)
tree6264fdf11117e16c71ff5d4431c6a461170856a0 /Source/cmake.h
parentb1729200c318dab23daac8643da5f9fdc673a5ef (diff)
downloadcmake-f5fa6d53b07d5c6224de2a491856a36fe3516218.tar.gz
class cmake: Store working directory at cmake launch
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 9b29098ff6..e845662911 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -194,6 +194,14 @@ public:
//@}
/**
+ * Working directory at CMake launch
+ */
+ std::string const& GetCMakeWorkingDirectory() const
+ {
+ return this->CMakeWorkingDirectory;
+ }
+
+ /**
* Handle a command line invocation of cmake.
*/
int Run(const std::vector<std::string>& args)
@@ -628,6 +636,7 @@ protected:
void GenerateGraphViz(const std::string& fileName) const;
private:
+ std::string CMakeWorkingDirectory;
ProgressCallbackType ProgressCallback;
WorkingMode CurrentWorkingMode = NORMAL_MODE;
bool DebugOutput = false;