mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
CPack/IFW: Fix generation of ProductImages
Entries of `CPACK_IFW_PACKAGE_PRODUCT_IMAGES` each need their own `ProductImage element. Fixes: #26268
This commit is contained in:
@@ -615,12 +615,14 @@ void cmCPackIFWInstaller::GenerateInstallerFile()
|
||||
if (!this->IsVersionLess("4.0") && !this->ProductImages.empty()) {
|
||||
xout.StartElement("ProductImages");
|
||||
for (auto const& srcImg : this->ProductImages) {
|
||||
xout.StartElement("ProductImage");
|
||||
std::string name = cmSystemTools::GetFilenameName(srcImg);
|
||||
std::string dstImg = this->Directory + "/config/" + name;
|
||||
cmsys::SystemTools::CopyFileIfDifferent(srcImg, dstImg);
|
||||
xout.Element("Image", name);
|
||||
xout.EndElement(); // </ProductImage>
|
||||
}
|
||||
xout.EndElement();
|
||||
xout.EndElement(); // </ProductImages>
|
||||
}
|
||||
|
||||
// Resources (copy to resources dir)
|
||||
|
||||
Reference in New Issue
Block a user