summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-14 21:42:29 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-14 21:42:29 (GMT)
commit1c0595c73fe1fa88b67691794eef8ee10edfc257 (patch)
treefd453a6e799d7d5f4ee6e1f01096a40cb8aadb1d /Source/cmAddCustomTargetCommand.cxx
parent67f8c0fd104fe6ec1b6c1df2ebce6fdb9b2c811f (diff)
downloadCMake-1c0595c73fe1fa88b67691794eef8ee10edfc257.zip
CMake-1c0595c73fe1fa88b67691794eef8ee10edfc257.tar.gz
CMake-1c0595c73fe1fa88b67691794eef8ee10edfc257.tar.bz2
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.
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r--Source/cmAddCustomTargetCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx
index d7e479a..06998c6 100644
--- a/Source/cmAddCustomTargetCommand.cxx
+++ b/Source/cmAddCustomTargetCommand.cxx
@@ -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;