cmMakefile: Collapse nested conditional.

This commit is contained in:
Stephen Kelly 2015-04-18 14:50:36 +02:00
parent 5947d9b031
commit 3a8ac2423e
1 changed files with 4 additions and 7 deletions

View File

@ -548,15 +548,12 @@ bool cmMakefile::ReadListFile(const char* filename_in,
filenametoread = filename_in;
}
if (external_in)
{
if (filename_in)
if (external_in && filename_in)
{
filenametoread =
cmSystemTools::CollapseFullPath(filename_in,
this->cmStartDirectory.c_str());
}
}
if (!filenametoread.empty())
{