Convert paths in INCLUDE_DIRECTORIES property to Unix slashes.

Duplicate some of the logic from the include_directories command.
This commit is contained in:
Stephen Kelly 2012-09-20 23:22:24 +02:00
parent 4557c8db48
commit 9a160871d0
1 changed files with 7 additions and 2 deletions

View File

@ -299,9 +299,14 @@ std::vector<std::string> cmGeneratorTarget::GetIncludeDirectories()
for(std::vector<std::string>::const_iterator
li = includes.begin(); li != includes.end(); ++li)
{
if(uniqueIncludes.insert(*li).second)
std::string inc = *li;
if (!cmSystemTools::IsOff(inc.c_str()))
{
orderedAndUniqueIncludes.push_back(*li);
cmSystemTools::ConvertToUnixSlashes(inc);
}
if(uniqueIncludes.insert(inc).second)
{
orderedAndUniqueIncludes.push_back(inc);
}
}