summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-08-13 11:42:59 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-08-13 11:48:10 (GMT)
commit86bf1eef7587b837057f098927fb6e7e10149c66 (patch)
treeeef40a2545a856af584ecd1c8bd81067463fd14a /Source/cmState.h
parent7d194f7d8331a127e0b2b921dc6bc0abfe21a0f5 (diff)
downloadCMake-86bf1eef7587b837057f098927fb6e7e10149c66.zip
CMake-86bf1eef7587b837057f098927fb6e7e10149c66.tar.gz
CMake-86bf1eef7587b837057f098927fb6e7e10149c66.tar.bz2
cmState: Support free function disallowed commands
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 8847f3b..937ab61 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -157,6 +157,8 @@ public:
std::unique_ptr<cmCommand> command);
void AddBuiltinCommand(std::string const& name, Command command);
void AddBuiltinCommand(std::string const& name, BuiltinCommand command);
+ void AddDisallowedCommand(std::string const& name, BuiltinCommand command,
+ cmPolicies::PolicyID policy, const char* message);
void AddDisallowedCommand(std::string const& name,
std::unique_ptr<cmCommand> command,
cmPolicies::PolicyID policy, const char* message);