diff options
author | Vasileios Anagnostopoulos <anagnwstopoulos@hotmail.com> | 2021-10-12 17:30:09 (GMT) |
---|---|---|
committer | Vasileios Anagnostopoulos <vasileios.anagnostopoulos@autoform.ch> | 2021-10-12 18:41:00 (GMT) |
commit | ed9dbe9218628f1123c8e8b45579c2f20362466b (patch) | |
tree | 0e815f4e6abbc39fe1c3ca15d891209a196789ec /Source/CPack | |
parent | 6f1fe83f865edb276aa78dd9f5dda1dbebcf21e3 (diff) | |
download | CMake-ed9dbe9218628f1123c8e8b45579c2f20362466b.zip CMake-ed9dbe9218628f1123c8e8b45579c2f20362466b.tar.gz CMake-ed9dbe9218628f1123c8e8b45579c2f20362466b.tar.bz2 |
CPack/WiX: Add option to skip the WixUIExtension
Fixes: #22747
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/WiX/cmCPackWIXGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx index d03239b..6a0095b 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx +++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx @@ -219,7 +219,9 @@ bool cmCPackWIXGenerator::InitializeWiXConfiguration() CollectExtensions("CPACK_WIX_EXTENSIONS", this->CandleExtensions); CollectExtensions("CPACK_WIX_CANDLE_EXTENSIONS", this->CandleExtensions); - this->LightExtensions.insert("WixUIExtension"); + if (!cmIsOn(GetOption("CPACK_WIX_SKIP_WIX_UI_EXTENSION"))) { + this->LightExtensions.insert("WixUIExtension"); + } CollectExtensions("CPACK_WIX_EXTENSIONS", this->LightExtensions); CollectExtensions("CPACK_WIX_LIGHT_EXTENSIONS", this->LightExtensions); CollectXmlNamespaces("CPACK_WIX_CUSTOM_XMLNS", this->CustomXmlNamespaces); |