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/cmCMakePresetsGraph.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/cmCMakePresetsGraph.h')
-rw-r--r-- | Source/cmCMakePresetsGraph.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmCMakePresetsGraph.h b/Source/cmCMakePresetsGraph.h index 9d7e5fa..7844624 100644 --- a/Source/cmCMakePresetsGraph.h +++ b/Source/cmCMakePresetsGraph.h @@ -15,6 +15,7 @@ #include <cm/optional> #include "cmJSONState.h" +#include "cmStateTypes.h" #include "CTest/cmCTestTypes.h" @@ -32,6 +33,13 @@ public: External, }; + enum class TraceEnableMode + { + Disable, + Default, + Expand, + }; + class CacheVariable { public: @@ -129,6 +137,11 @@ public: cm::optional<bool> DebugTryCompile; cm::optional<bool> DebugFind; + cm::optional<TraceEnableMode> TraceMode; + cm::optional<cmTraceEnums::TraceOutputFormat> TraceFormat; + std::vector<std::string> TraceSource; + std::string TraceRedirect; + bool VisitPresetInherit(const Preset& parent) override; bool VisitPresetBeforeInherit() override; bool VisitPresetAfterInherit(int version, cmJSONState* state) override; |