Merge topic 'vs9-target-framework-version'

0698714 VS: Set .NET target framework version for VS 7-9 (#14499)
This commit is contained in:
Brad King 2013-10-22 09:07:28 -04:00 committed by CMake Topic Stage
commit d8fe9f9de7
1 changed files with 5 additions and 0 deletions

View File

@ -2050,6 +2050,11 @@ cmLocalVisualStudio7Generator::WriteProjectStart(std::ostream& fout,
fout << "\tProjectGUID=\"{" << gg->GetGUID(libName) << "}\"\n";
}
this->WriteProjectSCC(fout, target);
if(const char* targetFrameworkVersion =
target.GetProperty("VS_DOTNET_TARGET_FRAMEWORK_VERSION"))
{
fout << "\tTargetFrameworkVersion=\"" << targetFrameworkVersion << "\"\n";
}
fout << "\tKeyword=\"" << keyword << "\">\n"
<< "\t<Platforms>\n"
<< "\t\t<Platform\n\t\t\tName=\"" << this->PlatformName << "\"/>\n"