cmLocalGenerator: Constify target definitions access
This commit is contained in:
parent
a54eeddaae
commit
2fcafbf613
|
@ -1386,7 +1386,7 @@ std::string cmLocalGenerator::GetIncludeFlags(
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmLocalGenerator::AddCompileDefinitions(std::set<std::string>& defines,
|
void cmLocalGenerator::AddCompileDefinitions(std::set<std::string>& defines,
|
||||||
cmTarget* target,
|
cmTarget const* target,
|
||||||
const char* config)
|
const char* config)
|
||||||
{
|
{
|
||||||
std::vector<std::string> targetDefines;
|
std::vector<std::string> targetDefines;
|
||||||
|
|
|
@ -224,8 +224,9 @@ public:
|
||||||
bool stripImplicitInclDirs = true);
|
bool stripImplicitInclDirs = true);
|
||||||
void AddCompileOptions(std::string& flags, cmTarget* target,
|
void AddCompileOptions(std::string& flags, cmTarget* target,
|
||||||
const char* lang, const char* config);
|
const char* lang, const char* config);
|
||||||
void AddCompileDefinitions(std::set<std::string>& defines, cmTarget* target,
|
void AddCompileDefinitions(std::set<std::string>& defines,
|
||||||
const char* config);
|
cmTarget const* target,
|
||||||
|
const char* config);
|
||||||
|
|
||||||
/** Compute the language used to compile the given source file. */
|
/** Compute the language used to compile the given source file. */
|
||||||
const char* GetSourceFileLanguage(const cmSourceFile& source);
|
const char* GetSourceFileLanguage(const cmSourceFile& source);
|
||||||
|
|
Loading…
Reference in New Issue