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.
This commit is contained in:
Brad King
2021-12-07 15:18:17 -05:00
parent 642238b302
commit 3d378541bb
10 changed files with 107 additions and 87 deletions
@@ -1,7 +1,15 @@
^CMake Error: The glob expression
.* at GLOB-error-CONFIGURE_DEPENDS-modified\.cmake:[0-9]+ \(file\)
was already present in the glob cache but the directory
contents have changed during the configuration run.
Matching glob expressions:
CONTENT_LIST_1 at GLOB-error-CONFIGURE_DEPENDS-modified\.cmake:[0-9]+ \(file\)
CONTENT_LIST_2 at GLOB-error-CONFIGURE_DEPENDS-modified\.cmake:[0-9]+ \(file\)$
^CMake Error at GLOB-error-CONFIGURE_DEPENDS-modified\.cmake:[0-9]+ \(file\):
The glob expression
[^
]*
was already present in the glob cache but the directory contents have
changed during the configuration run.
Matching glob expressions:
CONTENT_LIST_1 at GLOB-error-CONFIGURE_DEPENDS-modified\.cmake:[0-9]+ \(file\)
CONTENT_LIST_2 at GLOB-error-CONFIGURE_DEPENDS-modified\.cmake:[0-9]+ \(file\)
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)$