From 93a83bcc0018f3327be0f3253b397b98aff5e614 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 20 Aug 2025 22:40:31 -0400 Subject: cmGlobalVisualStudio7Generator: fix initialization typo Typo introduced in b82a74d918 (generators: use GetSupportDirectory() in more places, 2025-05-21) via !10812. Pointed out in a PVS-Studio blog post. See: https://pvs-studio.com/en/blog/posts/cpp/1277/ (N3) --- Source/cmGlobalVisualStudio7Generator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index c875be0..03d4577 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -623,7 +623,7 @@ std::string cmGlobalVisualStudio7Generator::WriteUtilityDepend( target->GetLocalGenerator()->MaybeRelativeToCurBinDir( cmStrCat(target->GetSupportDirectory(), '\\')); for (std::string const& i : configs) { - std::string intDir = cmStrCat(intDir, i); + std::string intDir = cmStrCat(intDirPrefix, i); /* clang-format off */ fout << -- cgit v0.12