I'm working on an existing, large open-source project that doesn't like in-source-tree builds. So its cmake-generated .sln file is placed in the build dir that has no .git anywhere in its parent directories because that .git is in the disjoint source tree.
\build
\proj.sln
\src
\.git
How do I make Visual Studio 2019 still see these "sideways" .git files? It can see the (C++ etc.) sources referred in the sln, of course, but nothing relating to git works inside VS2019 in this setup, by default.
I'm guessing I could mess with GIT_DISCOVERY_ACROSS_FILESYSTEM but I'm not sure it that would work with the way VS does git.
(And yes, the src dir is a git-cloned repo. I've made commits in it etc., but from the command line.)
And if I F1 (for help) the "Git Global Settings" in VS 2019... it goes to an oops page so that isn't exactly helpful. Ok, I found the actual VS doc/help for git. But it doesn't really answer my question.
If instead of opening the sln file, I open the directory of the source (src) from VS, then VS sees the git repo ok (current branch and what not) ... but I can't build anything, because VS can't see/find the sln file in this context. So, how do I "have my cake and eat it", i.e. have VS see the git stuff and allow me to build?



