'cmake project - rsync copies more then it should
My cmake project is in a sub directory as a part of a much larger repo like so:
repo_dir
|
some java projects dirs...
|
some dotnet projects dirs..
|
my cmake project dir
CMakeLists.txt
I use VS 2022 and build my project on a remote linux machine. when i try to sync and build my project it copies the entire "repo_dir" to the remote machine and not just "my cmake project dir", why is that? what to i need to set in order to fix that?
Solution 1:[1]
You can (and, I think, should) use CMake presets for that and other project management things which involve remote development with MSVS. Check the MS Configure and build with CMake Presets in Visual Studio to learn how to do it and use copySourcesOptions from the vendor map to customize what to copy.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ixSci |
