summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-07 20:18:17 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-08 15:03:48 (GMT)
commit3d378541bb22f00e3a22bf5f12e97b7943a81294 (patch)
tree853fa2666199c276b677e28c6b9c15fce70481c9 /Source/cmake.cxx
parent642238b3021ccb1923e57563bb61e0abb0111c84 (diff)
downloadCMake-3d378541bb22f00e3a22bf5f12e97b7943a81294.zip
CMake-3d378541bb22f00e3a22bf5f12e97b7943a81294.tar.gz
CMake-3d378541bb22f00e3a22bf5f12e97b7943a81294.tar.bz2
cmMessenger: Adopt backtrace printing functions
Move backtrace printing functions from `cmListFileBacktrace` over to `cmMessenger`, their primary caller. Thread `cmMessenger` instances through APIs needed to update other call sites.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 8c6a2ec..d927d27 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2155,7 +2155,8 @@ int cmake::ActualConfigure()
"CMakeLists.txt ?");
}
- this->State->SaveVerificationScript(this->GetHomeOutputDirectory());
+ this->State->SaveVerificationScript(this->GetHomeOutputDirectory(),
+ this->Messenger.get());
this->SaveCache(this->GetHomeOutputDirectory());
if (cmSystemTools::GetErrorOccuredFlag()) {
return -1;
@@ -2452,7 +2453,7 @@ void cmake::AddGlobCacheEntry(bool recurse, bool listDirectories,
{
this->State->AddGlobCacheEntry(recurse, listDirectories, followSymlinks,
relative, expression, files, variable,
- backtrace);
+ backtrace, this->Messenger.get());
}
std::vector<std::string> cmake::GetAllExtensions() const