cmNinjaTargetGenerator: Restore addition of Fortran format flags

Restore call to AppendFortranFormatFlags accidentally dropped by
commit 0837538e (cmCommonTargetGenerator: Adopt GetFlags method,
2015-07-09).  It was added originally by commit 6a56740e
(cmNinjaTargetGenerator: Add Fortran flag generation, 2015-07-09).
This commit is contained in:
Brad King 2015-07-10 09:04:58 -04:00
parent fed5eb5b0e
commit 80d75246d4
1 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,12 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile const* source,
{
std::string flags = this->GetFlags(language);
// Add Fortran format flags.
if(language == "Fortran")
{
this->AppendFortranFormatFlags(flags, *source);
}
// Add source file specific flags.
this->LocalGenerator->AppendFlags(flags,
source->GetProperty("COMPILE_FLAGS"));