summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-16 12:16:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-09-16 12:16:54 (GMT)
commit1b91aaecd8ab707e1f245bc911baebd55637881a (patch)
tree5278baf7e69de4e030c9acc95d81e7a05fb23f03 /Source
parent86d0d78f2e6d39d22878b2a15f66ec854ed06848 (diff)
parentb6ac10394b88b476f069ba75426c1556ab8bfe00 (diff)
downloadCMake-1b91aaecd8ab707e1f245bc911baebd55637881a.zip
CMake-1b91aaecd8ab707e1f245bc911baebd55637881a.tar.gz
CMake-1b91aaecd8ab707e1f245bc911baebd55637881a.tar.bz2
Merge topic 'vs2022'
b6ac10394b VS: Update Visual Studio 17 2022 generator for Preview 4 f200f4d5a7 VS: Fix managed C++ project generation for VS 2022 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6524
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 75fb05f..e7ef7ea 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -578,6 +578,10 @@ void cmVisualStudio10TargetGenerator::Generate()
}
if (this->Managed) {
+ if (this->LocalGenerator->GetVersion() >=
+ cmGlobalVisualStudioGenerator::VS17) {
+ e1.Element("ManagedAssembly", "true");
+ }
std::string outputType;
switch (this->GeneratorTarget->GetType()) {
case cmStateEnums::OBJECT_LIBRARY: