[CMake] misleading error message in cmIncludeCommand.cxx
Brad King
brad.king at kitware.com
Thu Jun 9 08:22:33 EDT 2005
Alexander Neundorf wrote:
> in current cvs cmIncludeCommand.cxx there is the code:
>
> bool readit = m_Makefile->ReadListFile( m_Makefile->GetCurrentListFile(),
> fname.c_str() );
> f(!optional && !readit) {
> std::string m = "Could not find include file: ";
> m += fname;
> this->SetError(m.c_str());
> return false;
> }
>
> The problem is that cmMakefile.ReadListFile() doesn't only return false
> if the file was not found, but also if any of the contained commands
> failed:
This has now been fixed:
if(!optional && !readit && !cmSystemTools::GetFatalErrorOccured())
-Brad
More information about the CMake
mailing list