summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-10 14:44:56 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-12-11 14:30:12 (GMT)
commit2fcafbf613f07d6b2484a1dfdb6ba7cd2fc4a645 (patch)
tree0e70331ff40bf26f6954488993f726881924d9c1
parenta54eeddaae8c30a6cdc71eb81d7f968147a7e4dc (diff)
downloadCMake-2fcafbf613f07d6b2484a1dfdb6ba7cd2fc4a645.zip
CMake-2fcafbf613f07d6b2484a1dfdb6ba7cd2fc4a645.tar.gz
CMake-2fcafbf613f07d6b2484a1dfdb6ba7cd2fc4a645.tar.bz2
cmLocalGenerator: Constify target definitions access
-rw-r--r--Source/cmLocalGenerator.cxx2
-rw-r--r--Source/cmLocalGenerator.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index c3c5299..68d603a 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1386,7 +1386,7 @@ std::string cmLocalGenerator::GetIncludeFlags(
//----------------------------------------------------------------------------
void cmLocalGenerator::AddCompileDefinitions(std::set<std::string>& defines,
- cmTarget* target,
+ cmTarget const* target,
const char* config)
{
std::vector<std::string> targetDefines;
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 9a89f0f..ad662d5 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -224,8 +224,9 @@ public:
bool stripImplicitInclDirs = true);
void AddCompileOptions(std::string& flags, cmTarget* target,
const char* lang, const char* config);
- void AddCompileDefinitions(std::set<std::string>& defines, cmTarget* target,
- const char* config);
+ void AddCompileDefinitions(std::set<std::string>& defines,
+ cmTarget const* target,
+ const char* config);
/** Compute the language used to compile the given source file. */
const char* GetSourceFileLanguage(const cmSourceFile& source);