summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 26c8ad2..b4e05ed 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -917,8 +917,10 @@ unsigned long cmGlobalUnixMakefileGenerator3
{
unsigned long result = 0;
- // for every target in the top level all
- if (!lg->GetParent())
+ // if this is a project
+ if (!lg->GetParent() ||
+ strcmp(lg->GetMakefile()->GetProjectName(),
+ lg->GetParent()->GetMakefile()->GetProjectName()))
{
// use the new project to target map
std::set<cmTarget*> &targets =