mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
CPack/WIX: Prepare to provide version-specific WiX templates
Move our template for WiX Toolset v3 to a versioned location.
This commit is contained in:
@@ -635,9 +635,13 @@ std::string cmCPackWIXGenerator::GetRootFolderId() const
|
||||
|
||||
bool cmCPackWIXGenerator::GenerateMainSourceFileFromTemplate()
|
||||
{
|
||||
std::string wixTemplate = FindTemplate("WIX.template.in");
|
||||
std::string wixTemplate;
|
||||
if (cmValue wixtpl = GetOption("CPACK_WIX_TEMPLATE")) {
|
||||
wixTemplate = *wixtpl;
|
||||
} else {
|
||||
cm::optional<cm::string_view> alt;
|
||||
alt = "WIX-v3/"_s;
|
||||
wixTemplate = FindTemplate("WIX.template.in"_s, alt);
|
||||
}
|
||||
|
||||
if (wixTemplate.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user