diff options
author | Artin Alavi <1361714+Arastais@users.noreply.github.com> | 2023-02-07 07:30:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-30 13:18:53 (GMT) |
commit | 8e579b0228ae410aa83a4c45f1fbb790c4a6cf12 (patch) | |
tree | 8ce47bf63d0ff0a515b10593c5e3cdf75df9260e /Source/cmMakefile.cxx | |
parent | 4901fdb201bc6264e976e105780a490d9c0eba19 (diff) | |
download | CMake-8e579b0228ae410aa83a4c45f1fbb790c4a6cf12.zip CMake-8e579b0228ae410aa83a4c45f1fbb790c4a6cf12.tar.gz CMake-8e579b0228ae410aa83a4c45f1fbb790c4a6cf12.tar.bz2 |
presets: Add trace options to configure presets
Add JSON schema version 7 to support them.
Fixes: #22543
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index fc82c14..3a69b2e 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -340,7 +340,7 @@ void cmMakefile::PrintCommandTrace(cmListFileFunction const& lff, cm::optional<std::string> const& deferId = bt.Top().DeferId; switch (this->GetCMakeInstance()->GetTraceFormat()) { - case cmake::TraceFormat::TRACE_JSON_V1: { + case cmake::TraceFormat::JSONv1: { #ifndef CMAKE_BOOTSTRAP Json::Value val; Json::StreamWriterBuilder builder; @@ -367,7 +367,7 @@ void cmMakefile::PrintCommandTrace(cmListFileFunction const& lff, #endif break; } - case cmake::TraceFormat::TRACE_HUMAN: + case cmake::TraceFormat::Human: msg << full_path << "(" << lff.Line() << "):"; if (deferId) { msg << "DEFERRED:" << *deferId << ":"; @@ -379,8 +379,8 @@ void cmMakefile::PrintCommandTrace(cmListFileFunction const& lff, } msg << ")"; break; - case cmake::TraceFormat::TRACE_UNDEFINED: - msg << "INTERNAL ERROR: Trace format is TRACE_UNDEFINED"; + case cmake::TraceFormat::Undefined: + msg << "INTERNAL ERROR: Trace format is Undefined"; break; } |