summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-10-17 20:44:06 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-10-17 20:44:06 (GMT)
commit7ff422fb8e47c68ce9c23430059d307738d78f7a (patch)
treed030e2f58601c2630c6a843705ae0f146efd977f /Source/CPack
parent5ca2c491730c7ff22a9e4890fad394771c2180c6 (diff)
parentddec0533213ef8c7ea80f31d82e4f7baabcd3956 (diff)
downloadCMake-7ff422fb8e47c68ce9c23430059d307738d78f7a.zip
CMake-7ff422fb8e47c68ce9c23430059d307738d78f7a.tar.gz
CMake-7ff422fb8e47c68ce9c23430059d307738d78f7a.tar.bz2
Merge topic 'CPack-ArchiveGen-andDESTIR_ON'
ddec053 Make CPACK_SET_DESTDIR work with archive generator + component-based packaging
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 679b8fa..e964696 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -905,7 +905,7 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
localFileName =
cmSystemTools::RelativePath(InstallPrefix, fit->c_str());
localFileName =
- localFileName.substr(localFileName.find('/')+1,
+ localFileName.substr(localFileName.find_first_not_of('/'),
std::string::npos);
Components[installComponent].Files.push_back(localFileName);
cmCPackLogger(cmCPackLog::LOG_DEBUG, "Adding file <"