call static cmOutputConverter::GetFortranFormat without object

This commit is contained in:
Daniel Pfeifer
2016-06-05 23:44:39 +02:00
parent d546456765
commit ba5fb16519
3 changed files with 8 additions and 6 deletions

View File

@@ -178,10 +178,10 @@ void cmCommonTargetGenerator::AppendFortranFormatFlags(
{
const char* srcfmt = source.GetProperty("Fortran_FORMAT");
cmOutputConverter::FortranFormat format =
this->LocalGenerator->GetFortranFormat(srcfmt);
cmOutputConverter::GetFortranFormat(srcfmt);
if (format == cmOutputConverter::FortranFormatNone) {
const char* tgtfmt = this->GeneratorTarget->GetProperty("Fortran_FORMAT");
format = this->LocalGenerator->GetFortranFormat(tgtfmt);
format = cmOutputConverter::GetFortranFormat(tgtfmt);
}
const char* var = 0;
switch (format) {