mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmOutputConverter::GetFortranFormat(): delete const char* overload
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user