mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05: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()) {
|
if (!this->IsVersionLess("4.0") && !this->ProductImages.empty()) {
|
||||||
xout.StartElement("ProductImages");
|
xout.StartElement("ProductImages");
|
||||||
for (auto const& srcImg : this->ProductImages) {
|
for (auto const& srcImg : this->ProductImages) {
|
||||||
|
xout.StartElement("ProductImage");
|
||||||
std::string name = cmSystemTools::GetFilenameName(srcImg);
|
std::string name = cmSystemTools::GetFilenameName(srcImg);
|
||||||
std::string dstImg = this->Directory + "/config/" + name;
|
std::string dstImg = this->Directory + "/config/" + name;
|
||||||
cmsys::SystemTools::CopyFileIfDifferent(srcImg, dstImg);
|
cmsys::SystemTools::CopyFileIfDifferent(srcImg, dstImg);
|
||||||
xout.Element("Image", name);
|
xout.Element("Image", name);
|
||||||
|
xout.EndElement(); // </ProductImage>
|
||||||
}
|
}
|
||||||
xout.EndElement();
|
xout.EndElement(); // </ProductImages>
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resources (copy to resources dir)
|
// Resources (copy to resources dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user