cmVisualStudioGeneratorOptions: Add PrependInerhitedString method

This commit is contained in:
Brad King committed 2017-02-15 10:37:35 -05:00
1 parent 3936a2886e
commit bd5ea6993c
2 files changed
+13

No files matched your search

+11
View File
@@ -211,6 +211,17 @@ void cmVisualStudioGeneratorOptions::ParseFinish()
}
}
void cmVisualStudioGeneratorOptions::PrependInheritedString(
std::string const& key)
{
std::map<std::string, FlagValue>::iterator i = this->FlagMap.find(key);
if (i == this->FlagMap.end() || i->second.size() != 1) {
return;
}
std::string& value = i->second[0];
value = "%(" + key + ") " + value;
}
void cmVisualStudioGeneratorOptions::StoreUnknownFlag(const char* flag)
{
// Look for Intel Fortran flags that do not map well in the flag table.
+2
View File
@@ -47,6 +47,8 @@ public:
void Parse(const char* flags);
void ParseFinish();
void PrependInheritedString(std::string const& key);
// Fix the ExceptionHandling option to default to off.
void FixExceptionHandlingDefault();