diff options
author | Brad King <brad.king@kitware.com> | 2013-10-21 13:35:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-21 13:35:09 (GMT) |
commit | 0698714c86fdb187caf5df336fb7e3c005271872 (patch) | |
tree | c144688cebec4eb4678bcaba7190b42a9ea93806 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 936dec32e54156c1a1e42f09938dc04573381640 (diff) | |
download | CMake-0698714c86fdb187caf5df336fb7e3c005271872.zip CMake-0698714c86fdb187caf5df336fb7e3c005271872.tar.gz CMake-0698714c86fdb187caf5df336fb7e3c005271872.tar.bz2 |
VS: Set .NET target framework version for VS 7-9 (#14499)
Teach the VS 7-9 generators to honor the
VS_DOTNET_TARGET_FRAMEWORK_VERSION
target property. This was already done for VS >= 10 by commit cfe6300a
(VS: Add support for .NET target framework version, 2013-06-14).
Inspired-by: mar.na@t-online.de
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 5 |
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" |