mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmDisallowedCommand: extract policy checking from cmCommand
Implement cmDisallowedCommand as a wrapper class for cmCommand.
This commit is contained in:
@@ -16,11 +16,6 @@ class cmExecutionStatus;
|
||||
bool cmUtilitySourceCommand::InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus&)
|
||||
{
|
||||
if (this->Disallowed(
|
||||
cmPolicies::CMP0034,
|
||||
"The utility_source command should not be called; see CMP0034.")) {
|
||||
return true;
|
||||
}
|
||||
if (args.size() < 3) {
|
||||
this->SetError("called with incorrect number of arguments");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user