summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-22 13:07:28 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-22 13:07:28 (GMT)
commitd8fe9f9de7f6a2dd08329565b0b03d4b5d3cdf29 (patch)
tree86743a58f8b90c9a17a7ad0ddb1d8a1113b0c2d6
parent61de941ad74aa6da651015acd77d87b299fc5a49 (diff)
parent0698714c86fdb187caf5df336fb7e3c005271872 (diff)
downloadCMake-d8fe9f9de7f6a2dd08329565b0b03d4b5d3cdf29.zip
CMake-d8fe9f9de7f6a2dd08329565b0b03d4b5d3cdf29.tar.gz
CMake-d8fe9f9de7f6a2dd08329565b0b03d4b5d3cdf29.tar.bz2
Merge topic 'vs9-target-framework-version'
0698714 VS: Set .NET target framework version for VS 7-9 (#14499)
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index f21abc3..30c3d73 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -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"