Browse Source

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.
Calin Cascaval 11 years ago
parent
commit
42ed76bc99
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/CPack/cmCPackPackageMakerGenerator.cxx

+ 1 - 0
Source/CPack/cmCPackPackageMakerGenerator.cxx

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