mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
VS10: Honor /DELAYSIGN and /KEYFILE flags (#13601)
Fix the VS 10 link flag map to name the project file entries correctly. The VS 11 link flag map already has the correct names. Generate the entries in the <PropertyGroup> along with incremental linking options. Drop them from the <Link> element because VS does not use them.
This commit is contained in:
@@ -1106,6 +1106,23 @@ OutputLinkIncremental(std::string const& configName)
|
||||
*this->BuildFileStream << (manifest?manifest:"true")
|
||||
<< "</GenerateManifest>\n";
|
||||
linkOptions.RemoveFlag("GenerateManifest");
|
||||
|
||||
// Some link options belong here. Use them now and remove them so that
|
||||
// WriteLinkOptions does not use them.
|
||||
const char* flags[] = {
|
||||
"LinkDelaySign",
|
||||
"LinkKeyFile",
|
||||
0};
|
||||
for(const char** f = flags; *f; ++f)
|
||||
{
|
||||
const char* flag = *f;
|
||||
if(const char* value = linkOptions.GetFlag(flag))
|
||||
{
|
||||
this->WritePlatformConfigTag(flag, configName.c_str(), 3);
|
||||
*this->BuildFileStream << value << "</" << flag << ">\n";
|
||||
linkOptions.RemoveFlag(flag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user