diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-06-16 14:39:39 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-06-16 14:39:39 (GMT) |
commit | c017098d4d06ba114085ba7de47b99fc0b71e8d0 (patch) | |
tree | eabd3fa444c96599d490b12ab49cbccda21866d3 /Source/cmState.h | |
parent | a9ff600a509d6af1c25f482e1ce0184c97dd3f54 (diff) | |
download | CMake-c017098d4d06ba114085ba7de47b99fc0b71e8d0.zip CMake-c017098d4d06ba114085ba7de47b99fc0b71e8d0.tar.gz CMake-c017098d4d06ba114085ba7de47b99fc0b71e8d0.tar.bz2 |
CMake: Allow override of unexpected non-flow-control commands
Fixes: #22310
Diffstat (limited to 'Source/cmState.h')
-rw-r--r-- | Source/cmState.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h index 4e41156..9951b9a 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -166,6 +166,8 @@ public: void AddDisallowedCommand(std::string const& name, BuiltinCommand command, cmPolicies::PolicyID policy, const char* message); void AddUnexpectedCommand(std::string const& name, const char* error); + void AddUnexpectedFlowControlCommand(std::string const& name, + const char* error); bool AddScriptedCommand(std::string const& name, BT<Command> command, cmMakefile& mf); void RemoveBuiltinCommand(std::string const& name); |