ENH: fix DESTDIR install
This commit is contained in:
parent
24b49f9258
commit
337c1f0b72
|
@ -395,13 +395,12 @@ int cmCPackGenerator::InstallProjectViaInstallScript(
|
||||||
// underneath the tempInstallDirectory. The value of the project's
|
// underneath the tempInstallDirectory. The value of the project's
|
||||||
// CMAKE_INSTALL_PREFIX is sent in here as the value of the
|
// CMAKE_INSTALL_PREFIX is sent in here as the value of the
|
||||||
// CPACK_INSTALL_PREFIX variable.
|
// CPACK_INSTALL_PREFIX variable.
|
||||||
std::string dir = tempInstallDirectory;
|
std::string dir;
|
||||||
if (this->GetOption("CPACK_INSTALL_PREFIX"))
|
if (this->GetOption("CPACK_INSTALL_PREFIX"))
|
||||||
{
|
{
|
||||||
dir += this->GetOption("CPACK_INSTALL_PREFIX");
|
dir += this->GetOption("CPACK_INSTALL_PREFIX");
|
||||||
}
|
}
|
||||||
this->SetOption("CMAKE_INSTALL_PREFIX", dir.c_str());
|
this->SetOption("CMAKE_INSTALL_PREFIX", dir.c_str());
|
||||||
|
|
||||||
cmCPackLogger(cmCPackLog::LOG_DEBUG,
|
cmCPackLogger(cmCPackLog::LOG_DEBUG,
|
||||||
"- Using DESTDIR + CPACK_INSTALL_PREFIX... (this->SetOption)"
|
"- Using DESTDIR + CPACK_INSTALL_PREFIX... (this->SetOption)"
|
||||||
<< std::endl);
|
<< std::endl);
|
||||||
|
@ -555,7 +554,7 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
|
||||||
// underneath the tempInstallDirectory. The value of the project's
|
// underneath the tempInstallDirectory. The value of the project's
|
||||||
// CMAKE_INSTALL_PREFIX is sent in here as the value of the
|
// CMAKE_INSTALL_PREFIX is sent in here as the value of the
|
||||||
// CPACK_INSTALL_PREFIX variable.
|
// CPACK_INSTALL_PREFIX variable.
|
||||||
std::string dir = tempInstallDirectory;
|
std::string dir;
|
||||||
if (this->GetOption("CPACK_INSTALL_PREFIX"))
|
if (this->GetOption("CPACK_INSTALL_PREFIX"))
|
||||||
{
|
{
|
||||||
dir += this->GetOption("CPACK_INSTALL_PREFIX");
|
dir += this->GetOption("CPACK_INSTALL_PREFIX");
|
||||||
|
|
Loading…
Reference in New Issue