I am doing remote development work on a RHEL server, in which my windows machine. Basically my Linux "home" directory is mounted as a drive on my windows dev machine.
The project is a CMAKE based project with a lot of libraries added from, ExternalProject_Add, with git repo that is not excisable on my windows , only on my target computer. I am using "Unix Makefiles" as the generator.
I am using VS 2019
I have my project checked out in lets say:
x:\dev\myProj, which on my linux server is home/dev/myProj
The way I have been able to get the remote debug/building to work is:
-Check out and build my project to a 2nd directory: /home/.vs/myProj, on my Linux server
-I disable Remote copy sources,
-Set "Remote build root" to /home/.vs/myProj (which my windows machine sees as: x:.vs\myProj)
-Manually copy my modified source files from x:\dev\myProj to x:.vs\myProj
After I do this, I can go through and build, and debug through VS just fine.
What I want to know is, is there a way I can make this easier. Is there a way I can get away with just having everything in the same project directory? If I disable the file copies....it still wants to copy the cmake files, which...it causes issues. If I let it try to copy everything to my 2nd directory......it takes a long time, and it screws up the path on all of the ExternalProject_Add projects, and cmake refuses to build them.
Barring having to keep the 2 separate dirs, is there away to do the file copies, and tell it to ignore all of the external projects.