mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
BUG: INCLUDE_DIRECTORIES should interpret relative path arguments with respect to the current source directory.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user