I was going to suggest SUBST as well.
However, note that CMake doesn't need to be installed using a
system-recognised installer, you can just unzip a distribution anywhere you
do have write access. In all seriousness, Visual Studio is a much more
dangerous program than CMake will ever be, as it (=
Can you create the tree on the machine 1 so it looks the same as on machine
2 and thus the absolute paths would be the same?
For example
- by using SUBST to create virtual drive at the source root,
- by creating whole virtual machine on machine 1
https://docs.microsoft.com/en-us/windows-server/adm
So, it seems it is not possible to have CMake NOT to use absolute paths
Quote
“CMake does always use absolute paths. It's part of the concept.”
https://stackoverflow.com/questions/45856955/how-to-tell-cmake-to-use-relative-paths
One use case:
1) I have a Cmake script and I generate a Visual St