Make CPACK_SET_DESTDIR work with archive generator + component-based packaging
Fix bug #13004. The patch is from Stanislaw Szymczyk.
This commit is contained in:
parent
3eecc12df0
commit
ddec053321
|
@ -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 <"
|
||||
|
|
Loading…
Reference in New Issue