Merge topic 'vs-default-ignore-libs'
c1580a92
VS: Always add IgnoreSpecificDefaultLibraries to .vcxproj files29410df2
cmIDEOptions: Add an AppendFlag method to update multi-valued options
This commit is contained in:
commit
662daff0b2
|
@ -195,6 +195,13 @@ void cmIDEOptions::AddFlag(const char* flag,
|
||||||
this->FlagMap[flag] = value;
|
this->FlagMap[flag] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
void cmIDEOptions::AppendFlag(std::string const& flag,
|
||||||
|
std::string const& value)
|
||||||
|
{
|
||||||
|
this->FlagMap[flag].push_back(value);
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmIDEOptions::RemoveFlag(const char* flag)
|
void cmIDEOptions::RemoveFlag(const char* flag)
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,6 +30,7 @@ public:
|
||||||
void AddDefines(const std::vector<std::string> &defines);
|
void AddDefines(const std::vector<std::string> &defines);
|
||||||
void AddFlag(const char* flag, const char* value);
|
void AddFlag(const char* flag, const char* value);
|
||||||
void AddFlag(const char* flag, std::vector<std::string> const& value);
|
void AddFlag(const char* flag, std::vector<std::string> const& value);
|
||||||
|
void AppendFlag(std::string const& flag, std::string const& value);
|
||||||
void RemoveFlag(const char* flag);
|
void RemoveFlag(const char* flag);
|
||||||
const char* GetFlag(const char* flag);
|
const char* GetFlag(const char* flag);
|
||||||
|
|
||||||
|
|
|
@ -1864,6 +1864,8 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("ModuleDefinitionFile", def.c_str());
|
linkOptions.AddFlag("ModuleDefinitionFile", def.c_str());
|
||||||
}
|
}
|
||||||
|
linkOptions.AppendFlag("IgnoreSpecificDefaultLibraries",
|
||||||
|
"%(IgnoreSpecificDefaultLibraries)");
|
||||||
}
|
}
|
||||||
|
|
||||||
this->LinkOptions[config] = pOptions.release();
|
this->LinkOptions[config] = pOptions.release();
|
||||||
|
|
Loading…
Reference in New Issue