summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorVasileios Anagnostopoulos <anagnwstopoulos@hotmail.com>2021-10-12 17:30:09 (GMT)
committerVasileios Anagnostopoulos <vasileios.anagnostopoulos@autoform.ch>2021-10-12 18:41:00 (GMT)
commited9dbe9218628f1123c8e8b45579c2f20362466b (patch)
tree0e815f4e6abbc39fe1c3ca15d891209a196789ec /Source/CPack
parent6f1fe83f865edb276aa78dd9f5dda1dbebcf21e3 (diff)
downloadCMake-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.cxx4
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);