CPack: Fix CPACK_INSTALL_CMAKE_PROJECTS SubDirectory (4th) option

This commit is contained in:
Daniel Wirtz authored and Brad King committed 2016-02-18 09:37:59 -05:00
1 parent ede2a6ea6b
commit 26fdd9c30a
1 file changed
+1 -2
+1 -2
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)
{