summaryrefslogtreecommitdiffstats
path: root/Source/CPack/WiX/cmWIXSourceWriter.cxx
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2013-11-19 20:38:09 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2013-11-26 21:15:57 (GMT)
commit7b390f75e82ad79f6759656c52825c89e5c92902 (patch)
treef02ef0344b42aee09438326adf4cd5b6bb116bde /Source/CPack/WiX/cmWIXSourceWriter.cxx
parent1da77bf1ee4f3ba315ebb00da2eaeac474614cad (diff)
downloadCMake-7b390f75e82ad79f6759656c52825c89e5c92902.zip
CMake-7b390f75e82ad79f6759656c52825c89e5c92902.tar.gz
CMake-7b390f75e82ad79f6759656c52825c89e5c92902.tar.bz2
CPackWiX: add CPack component support
Creates a hierarchy of WiX features from CPack components and component groups. Switch to the FeatureTree UI in case components have been defined. Handles the component REQUIRE and HIDDEN options and the component group EXPANDED option.
Diffstat (limited to 'Source/CPack/WiX/cmWIXSourceWriter.cxx')
-rw-r--r--Source/CPack/WiX/cmWIXSourceWriter.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmWIXSourceWriter.cxx b/Source/CPack/WiX/cmWIXSourceWriter.cxx
index 214b8ac..c8a3922 100644
--- a/Source/CPack/WiX/cmWIXSourceWriter.cxx
+++ b/Source/CPack/WiX/cmWIXSourceWriter.cxx
@@ -123,6 +123,15 @@ void cmWIXSourceWriter::AddAttribute(
file << " " << key << "=\"" << EscapeAttributeValue(utf8) << '"';
}
+void cmWIXSourceWriter::AddAttributeUnlessEmpty(
+ const std::string& key, const std::string& value)
+{
+ if(value.size())
+ {
+ AddAttribute(key, value);
+ }
+}
+
std::string cmWIXSourceWriter::WindowsCodepageToUtf8(const std::string& value)
{
if(value.empty())