summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-25 15:21:00 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-18 12:26:27 (GMT)
commit52311484dd8c7d3882f7f4c75efe0c3855c2f982 (patch)
tree5464bea17543445a2f410955ff2818c65595e084
parentdacbb414550db63ff40225f3f6057c3c74bcf5c9 (diff)
downloadCMake-52311484dd8c7d3882f7f4c75efe0c3855c2f982.zip
CMake-52311484dd8c7d3882f7f4c75efe0c3855c2f982.tar.gz
CMake-52311484dd8c7d3882f7f4c75efe0c3855c2f982.tar.bz2
cmLocalGenerator: Make MoveSystemIncludesToEnd file-local
-rw-r--r--Source/cmLocalGenerator.cxx11
-rw-r--r--Source/cmLocalGenerator.h4
2 files changed, 6 insertions, 9 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 941d787..7d922d7 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -202,9 +202,10 @@ void cmLocalGenerator::ComputeObjectMaxPath()
this->ObjectMaxPathViolations.clear();
}
-void cmLocalGenerator::MoveSystemIncludesToEnd(
- std::vector<std::string>& includeDirs, const std::string& config,
- const std::string& lang, const cmGeneratorTarget* target) const
+static void MoveSystemIncludesToEnd(std::vector<std::string>& includeDirs,
+ const std::string& config,
+ const std::string& lang,
+ const cmGeneratorTarget* target)
{
if (!target) {
return;
@@ -707,7 +708,7 @@ std::string cmLocalGenerator::GetIncludeFlags(
}
std::vector<std::string> includes = includeDirs;
- this->MoveSystemIncludesToEnd(includes, config, lang, target);
+ MoveSystemIncludesToEnd(includes, config, lang, target);
OutputFormat shellFormat = forResponseFile ? RESPONSE : SHELL;
std::ostringstream includeFlags;
@@ -960,7 +961,7 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs,
}
}
- this->MoveSystemIncludesToEnd(dirs, config, lang, target);
+ MoveSystemIncludesToEnd(dirs, config, lang, target);
// Add standard include directories for this language.
{
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index f8d70ca..acdad64 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -414,10 +414,6 @@ private:
int targetType);
void ComputeObjectMaxPath();
- void MoveSystemIncludesToEnd(std::vector<std::string>& includeDirs,
- const std::string& config,
- const std::string& lang,
- cmGeneratorTarget const* target) const;
};
#if defined(CMAKE_BUILD_WITH_CMAKE)