EXCLUDE_FROM_DEFAULT_BUILD does not work for include_external_msproject
As shown in the attachment exclusionIssue.zip, there is a problem when I try to disable an external project for VisualStudio / MSBuild generators. If I set EXCLUDE_FROM_DEFAULT_BUILD for a C++ project, CMake dutifully generates a corresponding project that is not built by MSBuild by default. However, for an external MS project, this property seems to do nothing.
The background / use case is that we do not generate our C# solutions with CMake, but include them as external projects. Now we have two products/ generated solutions consisting of a mostly shared code base and a few product-specific projects. These should be visible in the other product solution, so that a search&replace can be easily done if someone changes the interface in the shared code base. Obviously, these specific projects should not be built. This works fine for the various C++ type projects, but not for the C# / external projects.
My current workaround would be to exclude the C# projects altogether. This is probably acceptable, but not really great in the long term.