Skip to content
Snippets Groups Projects
Commit 6a98785d authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'compat-CPACK_INSTALL_CMAKE_PROJECTS-subdirectory'

57534990 CPack: Add compatibility for incorrect CPACK_INSTALL_CMAKE_PROJECTS value
parents 88ee36f9 57534990
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment