Merge topic 'cpack-PackageMaker-package-size'

42ed76bc cpack: Fix installed size computation with PackageMaker generator
This commit is contained in:
Brad King 2014-12-24 06:38:08 -05:00 committed by CMake Topic Stage
commit c20d3d319c
1 changed files with 1 additions and 0 deletions

View File

@ -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());