Skip to content
  • Brad King's avatar
    Avoid non-root copies of root-only targets · 9000b5a4
    Brad King authored
    In cmGlobalGenerator::GetTargetSets we collect targets from all local
    generators in a tree or subtree corresponding to a project() command.
    Some targets, such as ALL_BUILD, are duplicated in each subdirectory
    with a project() command.  For such targets we should keep only the copy
    for the top-most (root) local generator.
    
    Previously this filtering was done in each VS IDE generator, but it is
    easier to do it in one place when the targets are first encountered.
    This also fixes bad ALL_BUILD dependencies generated for VS 7.0 because
    the cmGlobalVisualStudio7Generator::WriteTargetDepends method was not
    filtering out duplicates.  Now we avoid duplicates from the start.
    9000b5a4