summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-13 16:55:56 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-16 22:18:07 (GMT)
commit48292c8624b901a842b6d4f8a88ca00f898e5639 (patch)
tree3fe69130b088d51d082fb842d6d3688c874455a9 /Source/cmake.h
parentd4bf7d80c618930e6b88c35d271a5b0a0656bb7b (diff)
downloadCMake-48292c8624b901a842b6d4f8a88ca00f898e5639.zip
CMake-48292c8624b901a842b6d4f8a88ca00f898e5639.tar.gz
CMake-48292c8624b901a842b6d4f8a88ca00f898e5639.tar.bz2
try_compile: Record stack of in-progess checks in configure log
Many `try_compile` and `try_run` calls occur inside check modules between `message(CHECK_START)` and `message(CHECK_{PASS,FAIL})` pairs. Add a field to configure log entries to report this context. Issue: #23200
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 12160ad..d1f388a 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -479,6 +479,10 @@ public:
{
this->CheckInProgressMessages.emplace_back(std::move(message));
}
+ std::vector<std::string> const& GetCheckInProgressMessages() const
+ {
+ return this->CheckInProgressMessages;
+ }
//! Should `message` command display context.
bool GetShowLogContext() const { return this->LogContext; }