diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2016-07-20 13:27:01 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2016-08-02 12:05:08 (GMT) |
commit | e29bfbf272dbf4ea5f6a89084ec1f503fcf0e4f7 (patch) | |
tree | df3878276790571e93f330ca5dcf9ffbfa8e8f0c /Source/CPack | |
parent | 55d9bfa9dd42912432eea3297507187084a7d154 (diff) | |
download | CMake-e29bfbf272dbf4ea5f6a89084ec1f503fcf0e4f7.zip CMake-e29bfbf272dbf4ea5f6a89084ec1f503fcf0e4f7.tar.gz CMake-e29bfbf272dbf4ea5f6a89084ec1f503fcf0e4f7.tar.bz2 |
CPackWIX: Support custom title and description for the root feature
These can now be specified through the WIX generator specific
CPack variables CPACK_WIX_ROOT_FEATURE_TITLE and
CPACK_WIX_ROOT_FEATURE_DESCRIPTION.
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/WiX/cmCPackWIXGenerator.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx index 97216c3..3ecc14d 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx +++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx @@ -464,7 +464,14 @@ bool cmCPackWIXGenerator::CreateWiXSourceFiles() return false; } - featureDefinitions.AddAttribute("Title", cpackPackageName); + std::string featureTitle = cpackPackageName; + if (const char* title = GetOption("CPACK_WIX_ROOT_FEATURE_TITLE")) { + featureTitle = title; + } + featureDefinitions.AddAttribute("Title", featureTitle); + if (const char* desc = GetOption("CPACK_WIX_ROOT_FEATURE_DESCRIPTION")) { + featureDefinitions.AddAttribute("Description", desc); + } featureDefinitions.AddAttribute("Level", "1"); this->Patch->ApplyFragment("#PRODUCTFEATURE", featureDefinitions); |