mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
Refactor GetIncludeFlags to take includes instead of fetching them
This commit is contained in:
committed by
David Cole
parent
6a1c5a3569
commit
edd5303949
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user