|
@@ -385,6 +385,20 @@ bool cmGeneratorExpression::IsValidTargetName(const std::string& input)
|
|
|
return targetNameValidator.find(input);
|
|
|
}
|
|
|
|
|
|
+void cmGeneratorExpression::ReplaceInstallPrefix(
|
|
|
+ std::string& input, const std::string& replacement)
|
|
|
+{
|
|
|
+ std::string::size_type pos = 0;
|
|
|
+ std::string::size_type lastPos = pos;
|
|
|
+
|
|
|
+ while ((pos = input.find("$<INSTALL_PREFIX>", lastPos)) !=
|
|
|
+ std::string::npos) {
|
|
|
+ std::string::size_type endPos = pos + sizeof("$<INSTALL_PREFIX>") - 1;
|
|
|
+ input.replace(pos, endPos - pos, replacement);
|
|
|
+ lastPos = endPos;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
void cmCompiledGeneratorExpression::GetMaxLanguageStandard(
|
|
|
const cmGeneratorTarget* tgt, std::map<std::string, std::string>& mapping)
|
|
|
{
|