cmOutputConverter::GetFortranFormat(): delete const char* overload

This commit is contained in:
Vitaly Stakhovsky
2020-04-27 07:00:00 -04:00
parent a4071b53da
commit 4fd28b9911
5 changed files with 8 additions and 18 deletions

View File

@@ -73,11 +73,12 @@ void cmCommonTargetGenerator::AddModuleDefinitionFlag(
void cmCommonTargetGenerator::AppendFortranFormatFlags(
std::string& flags, cmSourceFile const& source)
{
cmProp srcfmt = source.GetProperty("Fortran_FORMAT");
const std::string srcfmt = source.GetSafeProperty("Fortran_FORMAT");
cmOutputConverter::FortranFormat format =
cmOutputConverter::GetFortranFormat(srcfmt ? srcfmt->c_str() : nullptr);
cmOutputConverter::GetFortranFormat(srcfmt);
if (format == cmOutputConverter::FortranFormatNone) {
const char* tgtfmt = this->GeneratorTarget->GetProperty("Fortran_FORMAT");
const std::string tgtfmt =
this->GeneratorTarget->GetSafeProperty("Fortran_FORMAT");
format = cmOutputConverter::GetFortranFormat(tgtfmt);
}
const char* var = nullptr;