diff options
author | David Cole <david.cole@kitware.com> | 2008-07-30 13:28:17 -0400 |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-07-30 13:28:17 -0400 |
commit | b2f041f6a899b2592477c98da0d060cc7c983a91 (patch) | |
tree | 17efd4d5bd4ec380e5d31dee13cc1c0eb67a2d98 /Source/CPack/cmCPackPackageMakerGenerator.h | |
parent | 0247a495c1ec8855ca70557c39af47b12c9ed7ec (diff) | |
download | cmake-b2f041f6a899b2592477c98da0d060cc7c983a91.tar.gz |
BUG: Fix issue #7414 - do not crash when given components with circular dependencies. Thanks to Doug Gregor for the patch.
Diffstat (limited to 'Source/CPack/cmCPackPackageMakerGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackPackageMakerGenerator.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackPackageMakerGenerator.h b/Source/CPack/cmCPackPackageMakerGenerator.h index 228e099ced..ea835b759f 100644 --- a/Source/CPack/cmCPackPackageMakerGenerator.h +++ b/Source/CPack/cmCPackPackageMakerGenerator.h @@ -88,12 +88,15 @@ protected: // Subroutine of WriteDistributionFile that writes out the // dependency attributes for inter-component dependencies. void AddDependencyAttributes(const cmCPackComponent& component, + std::set<const cmCPackComponent *>& visited, cmOStringStream& out); // Subroutine of WriteDistributionFile that writes out the // reverse dependency attributes for inter-component dependencies. - void AddReverseDependencyAttributes(const cmCPackComponent& component, - cmOStringStream& out); + void + AddReverseDependencyAttributes(const cmCPackComponent& component, + std::set<const cmCPackComponent *>& visited, + cmOStringStream& out); // Generates XML that encodes the hierarchy of component groups and // their components in a form that can be used by distribution |