add project command even if inheriting

This commit is contained in:
Bill Hoffman 2002-12-02 16:15:36 -05:00
parent 332fb964e7
commit 952c2f2d64
1 changed files with 1 additions and 2 deletions

View File

@ -314,8 +314,7 @@ bool cmMakefile::ReadListFile(const char* filename, const char* external)
// one, then cmake will provide one via the
// cmListFileCache class.
bool requireProjectCommand = false;
if(!m_Inheriting && !external
&& m_cmCurrentDirectory == m_cmHomeDirectory)
if(!external && m_cmCurrentDirectory == m_cmHomeDirectory)
{
if(cmSystemTools::LowerCase(
cmSystemTools::GetFilenameName(filename)) == "cmakelists.txt")