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/cmake.h | |
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/cmake.h')
-rw-r--r-- | Source/cmake.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index d1f388a..0f8f642 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -118,13 +118,7 @@ public: FIND_PACKAGE_MODE }; - /** \brief Define supported trace formats **/ - enum TraceFormat - { - TRACE_UNDEFINED, - TRACE_HUMAN, - TRACE_JSON_V1, - }; + using TraceFormat = cmTraceEnums::TraceOutputFormat; struct GeneratorInfo { @@ -719,7 +713,7 @@ private: bool DebugFindOutput = false; bool Trace = false; bool TraceExpand = false; - TraceFormat TraceFormatVar = TRACE_HUMAN; + TraceFormat TraceFormatVar = TraceFormat::Human; cmGeneratedFileStream TraceFile; cmake* TraceRedirect = nullptr; #ifndef CMAKE_BOOTSTRAP |