summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-05-04 11:57:47 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-05-11 16:16:08 (GMT)
commitf5fa6d53b07d5c6224de2a491856a36fe3516218 (patch)
tree6264fdf11117e16c71ff5d4431c6a461170856a0 /Source/cmake.cxx
parentb1729200c318dab23daac8643da5f9fdc673a5ef (diff)
downloadCMake-f5fa6d53b07d5c6224de2a491856a36fe3516218.zip
CMake-f5fa6d53b07d5c6224de2a491856a36fe3516218.tar.gz
CMake-f5fa6d53b07d5c6224de2a491856a36fe3516218.tar.bz2
class cmake: Store working directory at cmake launch
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 6123497..5440984 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -157,7 +157,8 @@ static void cmWarnUnusedCliWarning(const std::string& variable, int /*unused*/,
#endif
cmake::cmake(Role role, cmState::Mode mode)
- : FileTimeCache(cm::make_unique<cmFileTimeCache>())
+ : CMakeWorkingDirectory(cmSystemTools::GetCurrentWorkingDirectory())
+ , FileTimeCache(cm::make_unique<cmFileTimeCache>())
#ifndef CMAKE_BOOTSTRAP
, VariableWatch(cm::make_unique<cmVariableWatch>())
#endif