Don't prepend a path before generator expressions in include_directories.

This commit is contained in:
Stephen Kelly 2012-09-20 23:22:59 +02:00
parent c6abc41eb5
commit 4557c8db48
1 changed files with 7 additions and 4 deletions

View File

@ -105,10 +105,13 @@ void cmIncludeDirectoryCommand::AddDirectory(const char *i,
cmSystemTools::ConvertToUnixSlashes(ret);
if(!cmSystemTools::FileIsFullPath(ret.c_str()))
{
std::string tmp = this->Makefile->GetStartDirectory();
tmp += "/";
tmp += ret;
ret = tmp;
if(ret[0] != '$' && ret[1] != '<')
{
std::string tmp = this->Makefile->GetStartDirectory();
tmp += "/";
tmp += ret;
ret = tmp;
}
}
}
this->Makefile->AddIncludeDirectory(ret.c_str(), before);