CPack: Fix CPACK_INSTALL_CMAKE_PROJECTS SubDirectory (4th) option

This commit is contained in:
Daniel Wirtz 2016-02-18 11:30:05 +13:00 committed by Brad King
parent ede2a6ea6b
commit 26fdd9c30a
1 changed files with 1 additions and 2 deletions

View File

@ -723,10 +723,9 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
cmGlobalGenerator gg(&cm);
cmsys::auto_ptr<cmMakefile> mf(
new cmMakefile(&gg, cm.GetCurrentSnapshot()));
std::string realInstallDirectory = tempInstallDirectory;
if ( !installSubDirectory.empty() && installSubDirectory != "/" )
{
realInstallDirectory += installSubDirectory;
tempInstallDirectory += installSubDirectory;
}
if (componentInstall)
{