Refactor GetIncludeFlags to take includes instead of fetching them

This commit is contained in:
Stephen Kelly
2011-12-04 16:36:48 +01:00
committed by David Cole
parent 6a1c5a3569
commit edd5303949
4 changed files with 21 additions and 10 deletions
+5 -1
View File
@@ -1829,8 +1829,12 @@ void cmMakefileTargetGenerator::AddIncludeFlags(std::string& flags,
responseVar += "_USE_RESPONSE_FILE_FOR_INCLUDES";
bool useResponseFile = this->Makefile->IsOn(responseVar.c_str());
std::vector<std::string> includes;
this->LocalGenerator->GetIncludeDirectories(includes, lang);
std::string includeFlags =
this->LocalGenerator->GetIncludeFlags(lang, useResponseFile);
this->LocalGenerator->GetIncludeFlags(includes, lang, useResponseFile);
if(includeFlags.empty())
{
return;