summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-20 13:03:22 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-07-20 13:03:22 (GMT)
commit6a98785d8f76d78447716fa90f93a36060288b8f (patch)
tree33cdbe789548c43c1750b61b0bdc03fb1aa8931f /Source/CPack
parent88ee36f93f2491a0e1220fd6bdc5018b85c10f24 (diff)
parent57534990d812c49bb2f71f5d36b19fa5e2c005a0 (diff)
downloadCMake-6a98785d8f76d78447716fa90f93a36060288b8f.zip
CMake-6a98785d8f76d78447716fa90f93a36060288b8f.tar.gz
CMake-6a98785d8f76d78447716fa90f93a36060288b8f.tar.bz2
Merge topic 'compat-CPACK_INSTALL_CMAKE_PROJECTS-subdirectory'
57534990 CPack: Add compatibility for incorrect CPACK_INSTALL_CMAKE_PROJECTS value
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 76609e1..58a2243 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -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) {