mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user