summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackPackageMakerGenerator.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-07-30 17:28:17 (GMT)
committerDavid Cole <david.cole@kitware.com>2008-07-30 17:28:17 (GMT)
commitb2f041f6a899b2592477c98da0d060cc7c983a91 (patch)
tree17efd4d5bd4ec380e5d31dee13cc1c0eb67a2d98 /Source/CPack/cmCPackPackageMakerGenerator.h
parent0247a495c1ec8855ca70557c39af47b12c9ed7ec (diff)
downloadCMake-b2f041f6a899b2592477c98da0d060cc7c983a91.zip
CMake-b2f041f6a899b2592477c98da0d060cc7c983a91.tar.gz
CMake-b2f041f6a899b2592477c98da0d060cc7c983a91.tar.bz2
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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackPackageMakerGenerator.h b/Source/CPack/cmCPackPackageMakerGenerator.h
index 228e099..ea835b7 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