cpack: Fix installed size computation with PackageMaker generator
Use the CPACK_PACKAGING_INSTALL_PREFIX when looking for files in a component. Otherwise we report all packages having size 1.
This commit is contained in:
parent
2c76f6f4da
commit
42ed76bc99
|
@ -964,6 +964,7 @@ cmCPackPackageMakerGenerator::CreateChoice(const cmCPackComponent& component,
|
||||||
std::string dirName = this->GetOption("CPACK_TEMPORARY_DIRECTORY");
|
std::string dirName = this->GetOption("CPACK_TEMPORARY_DIRECTORY");
|
||||||
dirName += '/';
|
dirName += '/';
|
||||||
dirName += component.Name;
|
dirName += component.Name;
|
||||||
|
dirName += this->GetOption("CPACK_PACKAGING_INSTALL_PREFIX");
|
||||||
unsigned long installedSize
|
unsigned long installedSize
|
||||||
= component.GetInstalledSizeInKbytes(dirName.c_str());
|
= component.GetInstalledSizeInKbytes(dirName.c_str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue