summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-12-04 15:36:48 (GMT)
committerDavid Cole <david.cole@kitware.com>2012-02-22 11:31:49 (GMT)
commitedd5303949f9d0e1b4b11e83aecd34bfdb2700ce (patch)
treee7c4328884cba9f0c5b07fb3ed4c78d39ecbb02a /Source/cmMakefileTargetGenerator.cxx
parent6a1c5a356911d3b75e60ecad86d7538e6de888f9 (diff)
downloadCMake-edd5303949f9d0e1b4b11e83aecd34bfdb2700ce.zip
CMake-edd5303949f9d0e1b4b11e83aecd34bfdb2700ce.tar.gz
CMake-edd5303949f9d0e1b4b11e83aecd34bfdb2700ce.tar.bz2
Refactor GetIncludeFlags to take includes instead of fetching them
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index a3a832b..dd982fb 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -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;