diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-22 22:40:27 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-22 23:08:18 (GMT) |
commit | ee38062be8ccdb7f4c53156ef00db0d42a41a6a7 (patch) | |
tree | 00ecedc8bcceb7bf2a548f0ee4e34ce69cc0f83e /Source | |
parent | 98bf613cd09e2187fa5002dac06e63d5450dbcf0 (diff) | |
download | CMake-ee38062be8ccdb7f4c53156ef00db0d42a41a6a7.zip CMake-ee38062be8ccdb7f4c53156ef00db0d42a41a6a7.tar.gz CMake-ee38062be8ccdb7f4c53156ef00db0d42a41a6a7.tar.bz2 |
IncludeDirectories: Respect SYSTEM flag when using CONFIG genex.
Update the Makefile and Ninja generators to use the config when
requesting the include flags.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 3 | ||||
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index f8471fd..7ed0c10 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1870,7 +1870,8 @@ void cmMakefileTargetGenerator::AddIncludeFlags(std::string& flags, std::string includeFlags = this->LocalGenerator->GetIncludeFlags(includes, this->GeneratorTarget, - lang, false, useResponseFile); + lang, false, useResponseFile, + config); if(includeFlags.empty()) { return; diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index c019ceb..67824c6 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -170,8 +170,10 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile const* source, std::string includeFlags = this->LocalGenerator->GetIncludeFlags(includes, this->GeneratorTarget, language, - language == "RC" ? true : false); // full include paths for RC + language == "RC" ? true : false, // full include paths for RC // needed by cmcldeps + false, + this->GetConfigName()); if(cmGlobalNinjaGenerator::IsMinGW()) cmSystemTools::ReplaceString(includeFlags, "\\", "/"); |