diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 0935383..9f1d107 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -901,33 +901,6 @@ cmMakefile::AddCustomCommandToOutput(const std::vector<std::string>& outputs, } else { - std::ostringstream e; - cmake::MessageType messageType = cmake::AUTHOR_WARNING; - bool issueMessage = false; - - switch(this->GetPolicyStatus(cmPolicies::CMP0057)) - { - case cmPolicies::WARN: - e << (this->GetPolicies()-> - GetPolicyWarning(cmPolicies::CMP0057)) << "\n"; - issueMessage = true; - case cmPolicies::OLD: - break; - case cmPolicies::NEW: - case cmPolicies::REQUIRED_IF_USED: - case cmPolicies::REQUIRED_ALWAYS: - issueMessage = true; - messageType = cmake::FATAL_ERROR; - break; - } - - if(issueMessage) - { - e << "\"" << main_dependency << "\" can only be specified as a " - "custom command MAIN_DEPENDENCY once."; - IssueMessage(messageType, e.str()); - } - // The existing custom command is different. We need to // generate a rule file for this new command. file = 0; |