Remove cmMakefile::GetIncludeDirectories
After making the changes to use the new target level INCLUDE_DIRECTORIES property, there are no more callers of this method.
This commit is contained in:
parent
9106b564ae
commit
22021f07f8
|
@ -1659,30 +1659,6 @@ void cmMakefile::AddIncludeDirectory(const char* inc, bool before)
|
|||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
std::vector<std::string> cmMakefile::GetIncludeDirectories()
|
||||
{
|
||||
std::vector<std::string> includes;
|
||||
const char *val = this->GetProperty("INCLUDE_DIRECTORIES");
|
||||
if(val)
|
||||
{
|
||||
cmSystemTools::ExpandListArgument(val, includes);
|
||||
}
|
||||
|
||||
std::set<std::string> uniqueIncludes;
|
||||
std::vector<std::string> orderedAndUniqueIncludes;
|
||||
for(std::vector<std::string>::const_iterator
|
||||
li = includes.begin(); li != includes.end(); ++li)
|
||||
{
|
||||
if(uniqueIncludes.insert(*li).second)
|
||||
{
|
||||
orderedAndUniqueIncludes.push_back(*li);
|
||||
}
|
||||
}
|
||||
|
||||
return orderedAndUniqueIncludes;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmMakefile::AddSystemIncludeDirectory(const char* dir)
|
||||
{
|
||||
|
|
|
@ -521,11 +521,6 @@ public:
|
|||
returned may be imported or built within the project. */
|
||||
cmTarget* FindTargetToUse(const char* name);
|
||||
|
||||
/**
|
||||
* Get a list of include directories in the build.
|
||||
*/
|
||||
std::vector<std::string> GetIncludeDirectories();
|
||||
|
||||
/**
|
||||
* Mark include directories as system directories.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue