mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 14:50:15 -05:00
Merge topic 'CPackRPM-fix12096'
d3fd945 CPackRPM Fix #12096: handle absolute install path with component install
This commit is contained in:
@@ -867,6 +867,28 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
|
||||
cmCPackLogger(cmCPackLog::LOG_DEBUG,
|
||||
"Got some ABSOLUTE DESTINATION FILES: "
|
||||
<< absoluteDestFiles << std::endl);
|
||||
// define component specific var
|
||||
if (componentInstall)
|
||||
{
|
||||
std::string absoluteDestFileComponent =
|
||||
std::string("CPACK_ABSOLUTE_DESTINATION_FILES")
|
||||
+ "_" + GetComponentInstallDirNameSuffix(installComponent);
|
||||
if (NULL != this->GetOption(absoluteDestFileComponent.c_str()))
|
||||
{
|
||||
std::string absoluteDestFilesListComponent =
|
||||
this->GetOption(absoluteDestFileComponent.c_str());
|
||||
absoluteDestFilesListComponent +=";";
|
||||
absoluteDestFilesListComponent +=
|
||||
mf->GetDefinition("CPACK_ABSOLUTE_DESTINATION_FILES");
|
||||
this->SetOption(absoluteDestFileComponent.c_str(),
|
||||
absoluteDestFilesListComponent.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
this->SetOption(absoluteDestFileComponent.c_str(),
|
||||
mf->GetDefinition("CPACK_ABSOLUTE_DESTINATION_FILES"));
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( cmSystemTools::GetErrorOccuredFlag() || !res )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user