Merge topic 'fortran-line-directives-no-dirs'
f831d752
cmFortranParser: Skip #line directives that do not name files
This commit is contained in:
commit
ae2fa89f74
|
@ -229,7 +229,7 @@ void cmFortranParser_RuleLineDirective(cmFortranParser* parser,
|
||||||
cmSystemTools::ConvertToUnixSlashes(included);
|
cmSystemTools::ConvertToUnixSlashes(included);
|
||||||
|
|
||||||
// Save the named file as included in the source.
|
// Save the named file as included in the source.
|
||||||
if (cmSystemTools::FileExists(included))
|
if (cmSystemTools::FileExists(included, true))
|
||||||
{
|
{
|
||||||
parser->Info.Includes.insert(included);
|
parser->Info.Includes.insert(included);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue