diff options
author | David Cole <david.cole@kitware.com> | 2012-02-07 20:34:39 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-02-07 20:34:39 (GMT) |
commit | a3e791389735224426de524db2af938602201395 (patch) | |
tree | 098cd861d9d03de8d56693f8c8b0b51de74a63a2 /Source/CPack/cmCPackGenerator.cxx | |
parent | 38e6757cd3192b4c6048409feada7a8c397504cf (diff) | |
parent | 5d18851b25af4f363d72371a5a6492741436eb37 (diff) | |
download | CMake-a3e791389735224426de524db2af938602201395.zip CMake-a3e791389735224426de524db2af938602201395.tar.gz CMake-a3e791389735224426de524db2af938602201395.tar.bz2 |
Merge topic 'AddTopLevelForComponent'
5d18851 CPackArchive restore default behavior and provide new variable.
3cab24a CPack Add top level directory in component install for Archive Generators
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 083279f..f7d8a4d 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_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY")) + { + tempInstallDirectory += "/"; + tempInstallDirectory += this->GetOption("CPACK_PACKAGE_FILE_NAME"); + } } if (!setDestDir) |