mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
Add the INSTALL_PREFIX genex.
This commit is contained in:
@@ -154,6 +154,21 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
|
||||
return result;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void
|
||||
cmExportInstallFileGenerator::ReplaceInstallPrefix(std::string &input)
|
||||
{
|
||||
std::string::size_type pos = 0;
|
||||
std::string::size_type lastPos = pos;
|
||||
|
||||
while((pos = input.find("$<INSTALL_PREFIX>", lastPos)) != input.npos)
|
||||
{
|
||||
std::string::size_type endPos = pos + sizeof("$<INSTALL_PREFIX>") - 1;
|
||||
input.replace(pos, endPos - pos, "${_IMPORT_PREFIX}");
|
||||
lastPos = endPos;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
cmExportInstallFileGenerator::GenerateImportFileConfig(const char* config,
|
||||
|
||||
Reference in New Issue
Block a user