ENH: Allow multiple install directories
This commit is contained in:
parent
1aecb478d6
commit
e48dc06402
|
@ -229,10 +229,18 @@ int cmCPackGenericGenerator::InstallProject()
|
|||
}
|
||||
}
|
||||
}
|
||||
const char* binaryDir = this->GetOption("CPACK_BINARY_DIR");
|
||||
if ( binaryDir )
|
||||
const char* binaryDirectories = this->GetOption("CPACK_BINARY_DIR");
|
||||
if ( binaryDirectories )
|
||||
{
|
||||
std::string installFile = binaryDir;
|
||||
std::vector<std::string> binaryDirectoriesVector;
|
||||
cmSystemTools::ExpandListArgument(binaryDirectories,
|
||||
binaryDirectoriesVector);
|
||||
std::vector<std::string>::iterator it;
|
||||
for ( it = binaryDirectoriesVector.begin();
|
||||
it != binaryDirectoriesVector.end();
|
||||
++it )
|
||||
{
|
||||
std::string installFile = it->c_str();
|
||||
installFile += "/cmake_install.cmake";
|
||||
cmake cm;
|
||||
cmGlobalGenerator gg;
|
||||
|
@ -256,6 +264,7 @@ int cmCPackGenericGenerator::InstallProject()
|
|||
res = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( !movable )
|
||||
{
|
||||
cmSystemTools::PutEnv("DESTDIR=");
|
||||
|
|
Loading…
Reference in New Issue