cmLocalGenerator: Constify target definitions access

This commit is contained in:
Stephen Kelly 2013-12-10 15:44:56 +01:00
parent a54eeddaae
commit 2fcafbf613
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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);