diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2015-09-28 20:50:15 (GMT) |
---|---|---|
committer | Domen Vrankar <domen.vrankar@gmail.com> | 2015-09-28 23:18:18 (GMT) |
commit | 9298f56dcedb888ff140b6b1aab90be91162d50f (patch) | |
tree | bb61e7768f1ef64290eddfe9becf001c5968aae9 /Source/CPack/cmCPackArchiveGenerator.cxx | |
parent | ecd71c9c1a0735cb84234344387f4138a1853fa5 (diff) | |
download | CMake-9298f56dcedb888ff140b6b1aab90be91162d50f.zip CMake-9298f56dcedb888ff140b6b1aab90be91162d50f.tar.gz CMake-9298f56dcedb888ff140b6b1aab90be91162d50f.tar.bz2 |
CPack: allow packaging of empty directories
Diffstat (limited to 'Source/CPack/cmCPackArchiveGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackArchiveGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackArchiveGenerator.cxx b/Source/CPack/cmCPackArchiveGenerator.cxx index 58bd947..70de757 100644 --- a/Source/CPack/cmCPackArchiveGenerator.cxx +++ b/Source/CPack/cmCPackArchiveGenerator.cxx @@ -78,7 +78,7 @@ int cmCPackArchiveGenerator::addOneComponentToArchive(cmArchiveWrite& archive, std::string rp = filePrefix + *fileIt; cmCPackLogger(cmCPackLog::LOG_DEBUG,"Adding file: " << rp << std::endl); - archive.Add(rp); + archive.Add(rp, 0, 0, false); if (!archive) { cmCPackLogger(cmCPackLog::LOG_ERROR, "ERROR while packaging files: " @@ -284,7 +284,7 @@ int cmCPackArchiveGenerator::PackageFiles() // Get the relative path to the file std::string rp = cmSystemTools::RelativePath(toplevel.c_str(), fileIt->c_str()); - archive.Add(rp); + archive.Add(rp, 0, 0, false); if(!archive) { cmCPackLogger(cmCPackLog::LOG_ERROR, "Problem while adding file< " |