ENH: fix bad error reporting with not found paths

This commit is contained in:
Ken Martin 2006-08-23 10:21:31 -04:00
parent 2994f3a158
commit 94e908ff2d
1 changed files with 9 additions and 14 deletions

View File

@ -48,6 +48,8 @@ bool cmIncludeDirectoryCommand
("Empty Include Directory Passed into INCLUDE_DIRECTORIES command.");
}
std::string unixPath = *i;
if (!cmSystemTools::IsOff(unixPath.c_str()))
{
cmSystemTools::ConvertToUnixSlashes(unixPath);
if(!cmSystemTools::FileIsFullPath(unixPath.c_str()))
{
@ -56,14 +58,7 @@ bool cmIncludeDirectoryCommand
tmp += unixPath;
unixPath = tmp;
}
/*
if ( !cmSystemTools::FileExists(unixPath.c_str()) )
{
std::string out = "Cannot find directory: " + unixPath;
this->SetError(out.c_str());
return false;
}
*/
this->Makefile->AddIncludeDirectory(unixPath.c_str(), before);
}
return true;