Merge topic 'compat-CPACK_INSTALL_CMAKE_PROJECTS-subdirectory'
57534990
CPack: Add compatibility for incorrect CPACK_INSTALL_CMAKE_PROJECTS value
This commit is contained in:
commit
6a98785d8f
|
@ -626,7 +626,8 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
|
|||
cmGlobalGenerator gg(&cm);
|
||||
CM_AUTO_PTR<cmMakefile> mf(
|
||||
new cmMakefile(&gg, cm.GetCurrentSnapshot()));
|
||||
if (!installSubDirectory.empty() && installSubDirectory != "/") {
|
||||
if (!installSubDirectory.empty() && installSubDirectory != "/" &&
|
||||
installSubDirectory != ".") {
|
||||
tempInstallDirectory += installSubDirectory;
|
||||
}
|
||||
if (componentInstall) {
|
||||
|
|
Loading…
Reference in New Issue