ENH: Add global property ALLOW_DUPLICATE_CUSTOM_TARGETS to help existing projects that depend on having duplicate custom targets. It is allowed only for Makefile generators. See bug#6348.

This commit is contained in:
Brad King
2008-02-14 16:42:29 -05:00
parent 67f8c0fd10
commit 1c0595c73f
7 changed files with 122 additions and 15 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ bool cmAddCustomTargetCommand
// Enforce name uniqueness.
{
std::string msg;
if(!this->Makefile->EnforceUniqueName(args[0], msg))
if(!this->Makefile->EnforceUniqueName(args[0], msg, true))
{
this->SetError(msg.c_str());
return false;