[CMake] Generating MSVS solution files that can be passed around

Zaak Beekman zbeekman at gmail.com
Thu Apr 19 11:46:26 EDT 2018


Greetings fellow CMake users!

While I know this topic has been discussed intermittently over the years
<https://www.google.com/search?q=cmake+visual+studio+solution+with+relative+paths&oq=cmake+visual+studio+solution+with+relative+paths&aqs=chrome..69i57.6599j0j7&sourceid=chrome&ie=UTF-8>
I was wondering if anyone had any further insight.

The situation is that we have a client who works with other contractors who
use almost exclusively windows and MSVS. This client wants to distribute
MSVS solution files with the source code so that other contractors don’t
have to install cmake. (There are some restrictions/red tape for installing
additional software on the contractor machines…)

I know the official party line is “CMake must use absolute paths, rerun
CMake to regenerate the MSVS solution files.” I also know that
CMAKE_USE_RELATIVE_PATHS was abandoned.

Does anyone have any updated insight on this issue? Is there any mechanism,
other than either manually or automatically editing the solution files to
cause them to use relative paths?

Another thought might be to include a statically linked CMake windows
binary with the source, but I need to investigate whether the CMake
licensing allows for that.

Thanks,
Zaak

Izaak "Zaak" Beekman

-------------------------------------------------------------------------------

HPC Scientist
ParaTools Inc. <http://www.paratools.com/>
ibeekman at paratools.com
1509 16th St, NW
Washington, DC 20036
mobile: (917) 797-3239
-------------------------------------------------------------------------------
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180419/a723a958/attachment.html>


More information about the CMake mailing list