mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-24 11:32:44 +08:00
Don't prepend a path before generator expressions in include_directories.
This commit is contained in:
@@ -104,6 +104,8 @@ void cmIncludeDirectoryCommand::AddDirectory(const char *i,
|
||||
{
|
||||
cmSystemTools::ConvertToUnixSlashes(ret);
|
||||
if(!cmSystemTools::FileIsFullPath(ret.c_str()))
|
||||
{
|
||||
if(ret[0] != '$' && ret[1] != '<')
|
||||
{
|
||||
std::string tmp = this->Makefile->GetStartDirectory();
|
||||
tmp += "/";
|
||||
@@ -111,6 +113,7 @@ void cmIncludeDirectoryCommand::AddDirectory(const char *i,
|
||||
ret = tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
this->Makefile->AddIncludeDirectory(ret.c_str(), before);
|
||||
if(system)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user