diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-12-04 15:36:48 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-02-22 11:31:49 (GMT) |
commit | edd5303949f9d0e1b4b11e83aecd34bfdb2700ce (patch) | |
tree | e7c4328884cba9f0c5b07fb3ed4c78d39ecbb02a /Source/cmMakefileTargetGenerator.cxx | |
parent | 6a1c5a356911d3b75e60ecad86d7538e6de888f9 (diff) | |
download | CMake-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.cxx | 6 |
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; |