summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenerator.cxx
diff options
context:
space:
mode:
authorDaniel Nelson <torham@connect2.com>2012-01-13 21:01:53 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2012-01-13 21:01:53 (GMT)
commit3cab24a9740ad1d35e548629f6dda12e166ef49e (patch)
treee2259e546162eccef83aa55c375c3b5739413cfc /Source/CPack/cmCPackGenerator.cxx
parent50edbf0f224e81cb85a0588d2495676efc3101f2 (diff)
downloadCMake-3cab24a9740ad1d35e548629f6dda12e166ef49e.zip
CMake-3cab24a9740ad1d35e548629f6dda12e166ef49e.tar.gz
CMake-3cab24a9740ad1d35e548629f6dda12e166ef49e.tar.bz2
CPack Add top level directory in component install for Archive Generators
This patch fixes bug #0012129 Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 083279f..01ed4df 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -691,6 +691,11 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
// one install directory for each component.
tempInstallDirectory +=
GetComponentInstallDirNameSuffix(installComponent);
+ if (this->IsOn("CPACK_INCLUDE_TOPLEVEL_DIRECTORY"))
+ {
+ tempInstallDirectory += "/";
+ tempInstallDirectory += this->GetOption("CPACK_PACKAGE_FILE_NAME");
+ }
}
if (!setDestDir)