diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 1ebf06e28..a6b165a14 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1539,21 +1539,6 @@ void cmMakefile::AddSubDirectory(const char* srcPath, const char *binPath, bool excludeFromAll, bool preorder, bool immediate) { - std::vector& children = - this->LocalGenerator->GetChildren(); - // has this directory already been added? If so error - unsigned int i; - for (i = 0; i < children.size(); ++i) - { - if (srcPath == children[i]->GetMakefile()->GetStartDirectory()) - { - cmSystemTools::Error - ("Attempt to add subdirectory multiple times for directory.\n", - srcPath); - return; - } - } - // Make sure the binary directory is unique. if(!this->EnforceUniqueDir(srcPath, binPath)) {