summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-05-06 18:47:17 (GMT)
committerBrad King <brad.king@kitware.com>2024-05-08 14:37:34 (GMT)
commit88c70dde34e76b79111adecc31493e9222e96e9c (patch)
tree96760848368a5d50a9160afdf73788e26d92666e /Source/cmGlobalVisualStudio7Generator.cxx
parent0bdcf1cb1789627df55af523f35ac9015715b5f0 (diff)
downloadCMake-88c70dde34e76b79111adecc31493e9222e96e9c.zip
CMake-88c70dde34e76b79111adecc31493e9222e96e9c.tar.gz
CMake-88c70dde34e76b79111adecc31493e9222e96e9c.tar.bz2
cmGlobalVisualStudioGenerator: Use member 'Version' more directly
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 866ace2..8cbb573 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -403,8 +403,7 @@ void cmGlobalVisualStudio7Generator::WriteTargetConfigurations(
std::string mapping;
// On VS 19 and above, always map .NET SDK projects to "Any CPU".
- if (target->IsDotNetSdkTarget() &&
- this->GetVersion() >= VSVersion::VS16 &&
+ if (target->IsDotNetSdkTarget() && this->Version >= VSVersion::VS16 &&
!cmGlobalVisualStudio7Generator::IsReservedTarget(
target->GetName())) {
mapping = "Any CPU";