summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackDebGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-10 14:34:52 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-10 14:34:52 (GMT)
commit2c8eb2696a8f3505d45ed5accfa94b3e5541e169 (patch)
tree0c29a188c44d985e0004c10de54bd52176caeaee /Source/CPack/cmCPackDebGenerator.cxx
parent039a7df9bada6d061f34728a0bb57fdcb9e277c1 (diff)
parent6daa2d384ef7f6f9edd5fed18c830168f7496881 (diff)
downloadCMake-2c8eb2696a8f3505d45ed5accfa94b3e5541e169.zip
CMake-2c8eb2696a8f3505d45ed5accfa94b3e5541e169.tar.gz
CMake-2c8eb2696a8f3505d45ed5accfa94b3e5541e169.tar.bz2
Merge topic 'cpack-deb-md5sums-paths-fix'
6daa2d38 CPack/Deb invalid md5sums file fix
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index 36566a4..5c50da8 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -173,7 +173,11 @@ int cmCPackDebGenerator::PackageComponentsAllInOne(
std::string(this->GetOption("CPACK_PACKAGE_FILE_NAME")) +
this->GetOutputExtension());
// all GROUP in one vs all COMPONENT in one
- localToplevel += "/" + compInstDirName;
+ // if must be here otherwise non component paths have a trailing / while
+ // components don't
+ if (!compInstDirName.empty()) {
+ localToplevel += "/" + compInstDirName;
+ }
/* replace the TEMP DIRECTORY with the component one */
this->SetOption("CPACK_TEMPORARY_DIRECTORY", localToplevel.c_str());