Re: [CMake] CMake, Visual Studio, do not generate absolute paths

2018-07-03 Thread Petr Kmoch
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 (=

Re: [CMake] CMake, Visual Studio, do not generate absolute paths

2018-07-03 Thread Jano Svitok
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

[CMake] CMake, Visual Studio, do not generate absolute paths

2018-07-02 Thread Pedro Vicente
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