cmLocalGenerator: Port internals to cmGeneratorTarget

This commit is contained in:
Stephen Kelly 2015-10-25 01:19:14 +02:00
parent 593f347b53
commit 3e3c754b8c
1 changed files with 4 additions and 5 deletions

View File

@ -2033,7 +2033,7 @@ AddCompilerRequirementFlag(std::string &flags,
}
static void AddVisibilityCompileOption(std::string &flags,
cmTarget const* target,
cmGeneratorTarget const* target,
cmLocalGenerator *lg,
const std::string& lang,
std::string* warnCMP0063)
@ -2073,7 +2073,7 @@ static void AddVisibilityCompileOption(std::string &flags,
}
static void AddInlineVisibilityCompileOption(std::string &flags,
cmTarget const* target,
cmGeneratorTarget const* target,
cmLocalGenerator *lg,
std::string* warnCMP0063)
{
@ -2126,12 +2126,11 @@ void cmLocalGenerator
}
}
AddVisibilityCompileOption(flags, target->Target, this, lang, pWarnCMP0063);
AddVisibilityCompileOption(flags, target, this, lang, pWarnCMP0063);
if(lang == "CXX")
{
AddInlineVisibilityCompileOption(flags, target->Target,
this, pWarnCMP0063);
AddInlineVisibilityCompileOption(flags, target, this, pWarnCMP0063);
}
if (!warnCMP0063.empty() &&