diff options
author | Keith Holman <keith.holman@windriver.com> | 2017-04-21 14:42:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-24 14:06:45 (GMT) |
commit | 58cf9d417e8b3d4d76597b9950a5af4860d3512c (patch) | |
tree | 08aeb2a3bdf95f4d1af0c27efcbee4f0f9d49637 /Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx | |
parent | 03628bb699956d92676c610e9a24d159aa591900 (diff) | |
download | CMake-58cf9d417e8b3d4d76597b9950a5af4860d3512c.zip CMake-58cf9d417e8b3d4d76597b9950a5af4860d3512c.tar.gz CMake-58cf9d417e8b3d4d76597b9950a5af4860d3512c.tar.bz2 |
wix: adds ability to modify attributes with patch
Adds the ability to attributes to generated XML files for features with
the WiX patch system. To modify attributes additional attributes may be
added within the 'CPackWixFragment' xml tag.
Fixes: #16813
Signed-off-by: Keith Holman <keith.holman@windriver.com>
Diffstat (limited to 'Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx')
-rw-r--r-- | Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx b/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx index 79a9fdd..0be4377 100644 --- a/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx +++ b/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx @@ -44,6 +44,8 @@ void cmWIXFeaturesSourceWriter::EmitFeatureForComponentGroup( AddAttributeUnlessEmpty("Title", group.DisplayName); AddAttributeUnlessEmpty("Description", group.Description); + patch.ApplyFragment("CM_G_" + group.Name, *this); + for (std::vector<cmCPackComponentGroup*>::const_iterator i = group.Subgroups.begin(); i != group.Subgroups.end(); ++i) { @@ -56,8 +58,6 @@ void cmWIXFeaturesSourceWriter::EmitFeatureForComponentGroup( EmitFeatureForComponent(**i, patch); } - patch.ApplyFragment("CM_G_" + group.Name, *this); - EndElement("Feature"); } |