Merge topic 'CPack-ArchiveGen-andDESTIR_ON'

ddec053 Make CPACK_SET_DESTDIR work with archive generator + component-based packaging
This commit is contained in:
David Cole 2012-10-17 16:44:06 -04:00 committed by CMake Topic Stage
commit 7ff422fb8e
1 changed files with 1 additions and 1 deletions

View File

@ -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 <"