diff options
| author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-10-06 14:40:32 -0400 |
|---|---|---|
| committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-10-11 12:10:18 -0400 |
| commit | 5ba51621af43dbb84a12a5eff6740f45b8ab0cb0 (patch) | |
| tree | 8bc95c99ef20874120e08df842700e5a0ec03d2f /Source/cmake.cxx | |
| parent | 7629a1182cf9006e4e83c1094794d935503dd079 (diff) | |
| download | cmake-5ba51621af43dbb84a12a5eff6740f45b8ab0cb0.tar.gz | |
try_compile: Propagate --trace through try_compile
Add ability to specify another cmake instance from which to get the
trace output target. Use this during try_compile.
Diffstat (limited to 'Source/cmake.cxx')
| -rw-r--r-- | Source/cmake.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 8800792283..c4c638c67d 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1537,6 +1537,16 @@ void cmake::PrintTraceFormatVersion() } } +void cmake::SetTraceRedirect(cmake* other) +{ + this->Trace = other->Trace; + this->TraceExpand = other->TraceExpand; + this->TraceFormatVar = other->TraceFormatVar; + this->TraceOnlyThisSources = other->TraceOnlyThisSources; + + this->TraceRedirect = other; +} + bool cmake::SetDirectoriesFromFile(const std::string& arg) { // Check if the argument refers to a CMakeCache.txt or |
