summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorSumit Bhardwaj <bhardwajs@outlook.com>2022-07-15 23:52:27 -0700
committerBrad King <brad.king@kitware.com>2022-07-20 08:51:38 -0400
commit7219988b006eb0b2fd52ab0ab3a38178a2e14c80 (patch)
tree089bf877f4ec1a096f8e9d1c204c80270ee4f3d8 /Source/cmGlobalVisualStudioGenerator.h
parent9d9c09b3df784b9ea8dd1f576bfb379bc3772391 (diff)
downloadcmake-7219988b006eb0b2fd52ab0ab3a38178a2e14c80.tar.gz
VS: Exclude ZERO_CHECK.proj from .sln for include_external_msproject
In `cmGlobalVisualStudio7Generator::WriteTargetsToSolution`, we skip writing `ZERO_CHECK.proj` to solution file as the check in `cmGlobalVisualStudioGenerator::IsInSolution` returns `false` for `ZERO_CHECK`. However, we write ZERO_CHECK to ProjectDependencies for external projects as there are no checks in `cmGlobalVisualStudio71Generator::WriteExternalProject`. Similar to `cmGlobalVisualStudioGenerator::IsInSolution`, we introduce `IsDepInSolution(const std::string&)` which excludes `ZERO_CHECK.proj` from being added to sln file for the cases where we have `ZERO_CHECK.proj`. Fixes: #23708
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h
index 4f5f1006e7..f45b4d49a2 100644
--- a/Source/cmGlobalVisualStudioGenerator.h
+++ b/Source/cmGlobalVisualStudioGenerator.h
@@ -101,6 +101,9 @@ public:
// return true if target should be included in solution.
virtual bool IsInSolution(const cmGeneratorTarget* gt) const;
+ // return true if project dependency should be included in solution.
+ virtual bool IsDepInSolution(const std::string& targetName) const;
+
/** Get the top-level registry key for this VS version. */
std::string GetRegistryBase();