BUG: INCLUDE_DIRECTORIES should interpret relative path arguments with respect to the current source directory.

This commit is contained in:
Brad King
2006-05-12 10:54:09 -04:00
parent 01c25dd378
commit 21089bf93f
4 changed files with 10 additions and 3 deletions
+7
View File
@@ -49,6 +49,13 @@ bool cmIncludeDirectoryCommand
}
std::string unixPath = *i;
cmSystemTools::ConvertToUnixSlashes(unixPath);
if(!cmSystemTools::FileIsFullPath(unixPath.c_str()))
{
std::string tmp = this->Makefile->GetStartDirectory();
tmp += "/";
tmp += unixPath;
unixPath = tmp;
}
this->Makefile->AddIncludeDirectory(unixPath.c_str(), before);
}
return true;