summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-10 13:23:14 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-10 13:24:11 (GMT)
commit853b1bb4ba176e886e3682a2475f1de1932ee890 (patch)
treea7886bb44dd82937cb56fe755c9d1fce4c09c6b3 /Source/cmLocalGenerator.cxx
parent98aafb2ad64daa0617b3a71ec61f692d5aa205ce (diff)
downloadCMake-853b1bb4ba176e886e3682a2475f1de1932ee890.zip
CMake-853b1bb4ba176e886e3682a2475f1de1932ee890.tar.gz
CMake-853b1bb4ba176e886e3682a2475f1de1932ee890.tar.bz2
cmLocalGenerator: Constify AppendDefines and AddCompileDefinitions
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index f543ec4..3f957f0 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -943,7 +943,7 @@ std::string cmLocalGenerator::GetIncludeFlags(
void cmLocalGenerator::AddCompileDefinitions(std::set<std::string>& defines,
cmGeneratorTarget const* target,
const std::string& config,
- const std::string& lang)
+ const std::string& lang) const
{
std::vector<std::string> targetDefines;
target->GetCompileDefinitions(targetDefines, config, lang);
@@ -2051,7 +2051,7 @@ void cmLocalGenerator::AppendFlagEscape(std::string& flags,
}
void cmLocalGenerator::AppendDefines(std::set<std::string>& defines,
- const char* defines_list)
+ const char* defines_list) const
{
// Short-circuit if there are no definitions.
if (!defines_list) {
@@ -2065,7 +2065,8 @@ void cmLocalGenerator::AppendDefines(std::set<std::string>& defines,
}
void cmLocalGenerator::AppendDefines(
- std::set<std::string>& defines, const std::vector<std::string>& defines_vec)
+ std::set<std::string>& defines,
+ const std::vector<std::string>& defines_vec) const
{
for (std::vector<std::string>::const_iterator di = defines_vec.begin();
di != defines_vec.end(); ++di) {