diff options
author | Brad King <brad.king@kitware.com> | 2021-11-03 18:31:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-06 10:08:54 (GMT) |
commit | f97f8537f371daa073edce34f54743d1f261c022 (patch) | |
tree | 30f5e72adfe40f1d2ee6e468878081f62c38627c /Source/cmGlobalVisualStudio8Generator.h | |
parent | e40cedddc0bcdd7d0317592a83fde42fd018f72f (diff) | |
download | CMake-f97f8537f371daa073edce34f54743d1f261c022.zip CMake-f97f8537f371daa073edce34f54743d1f261c022.tar.gz CMake-f97f8537f371daa073edce34f54743d1f261c022.tar.bz2 |
VS: Model a default target framework
Add fields to the VS generator to select a target framework.
Migrate the existing default for VS 12 .NET CF for Windows CE.
Report the values in `CMAKE_VS_*` variables and use them for
the CSharp compiler id project too.
Issue: #22849
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.h b/Source/cmGlobalVisualStudio8Generator.h index 96e3553..b6ecdf0 100644 --- a/Source/cmGlobalVisualStudio8Generator.h +++ b/Source/cmGlobalVisualStudio8Generator.h @@ -2,6 +2,8 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #pragma once +#include <cm/optional> + #include "cmGlobalVisualStudio71Generator.h" /** \class cmGlobalVisualStudio8Generator @@ -24,6 +26,10 @@ public: bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf) override; + cm::optional<std::string> const& GetTargetFrameworkVersion() const; + cm::optional<std::string> const& GetTargetFrameworkIdentifier() const; + cm::optional<std::string> const& GetTargetFrameworkTargetsVersion() const; + /** * Override Configure and Generate to add the build-system check * target. @@ -76,4 +82,8 @@ protected: std::string Name; std::string WindowsCEVersion; + + cm::optional<std::string> DefaultTargetFrameworkVersion; + cm::optional<std::string> DefaultTargetFrameworkIdentifier; + cm::optional<std::string> DefaultTargetFrameworkTargetsVersion; }; |