<div dir="ltr"><span style="color:rgb(33,33,33);font-size:13px"></span><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">Greetings fellow CMake users!</p>
<p style="margin:0px 0px 1.2em!important">While I know this topic has been <a href="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">discussed intermittently over the years</a> I was wondering if anyone had any further insight.</p>
<p style="margin:0px 0px 1.2em!important">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…)</p>
<p style="margin:0px 0px 1.2em!important">I know the official party line is “CMake must use absolute paths, rerun CMake to regenerate the MSVS solution files.” I also know that <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">CMAKE_USE_RELATIVE_PATHS</code> was abandoned.</p>
<p style="margin:0px 0px 1.2em!important">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?</p>
<p style="margin:0px 0px 1.2em!important">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.</p>
<p style="margin:0px 0px 1.2em!important">Thanks,<br>Zaak</p><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">Izaak "Zaak" Beekman<br><br>------------------------------------------------------------------------------- <br>HPC Scientist<br><a href="http://www.paratools.com/" target="_blank">ParaTools Inc.</a><div><a href="mailto:ibeekman@paratools.com">ibeekman@paratools.com</a></div><div dir="ltr">1509 16th St, NW</div><div dir="ltr">Washington, DC 20036</div>mobile: <a href="tel:(917)%20797-3239" value="+19177973239" target="_blank">(917) 797-3239</a><br>-------------------------------------------------------------------------------</div></div></div>
<div title="MDH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BtYW51YWxseSBvciBhdXRvbWF0aWNhbGx5IGVkaXRpbmcg
dGhlIHNvbHV0aW9uIGZpbGVzIHRvIGNhdXNlIHRoZW0gdG8gdXNlIHJlbGF0aXZlIHBhdGhzPzwv
ZGl2PjxkaXYgc3R5bGU9ImNvbG9yOiByZ2IoMzMsIDMzLCAzMyk7IGZvbnQtc2l6ZTogMTNweDsi
Pjxicj48L2Rpdj48ZGl2IHN0eWxlPSJjb2xvcjogcmdiKDMzLCAzMywgMzMpOyBmb250LXNpemU6
IDEzcHg7Ij5Bbm90aGVyIHRob3VnaHQgbWlnaHQgYmUgdG8gaW5jbHVkZSBhIHN0YXRpY2FsbHkg
bGlua2VkIENNYWtlIHdpbmRvd3MgYmluYXJ5IHdpdGggdGhlIHNvdXJjZSwgYnV0IEkgbmVlZCB0
byBpbnZlc3RpZ2F0ZSB3aGV0aGVyIHRoZSBDTWFrZSBsaWNlbnNpbmcgYWxsb3dzIGZvciB0aGF0
LjwvZGl2PjxkaXYgc3R5bGU9ImNvbG9yOiByZ2IoMzMsIDMzLCAzMyk7IGZvbnQtc2l6ZTogMTNw
eDsiPjxicj48L2Rpdj48ZGl2IHN0eWxlPSJjb2xvcjogcmdiKDMzLCAzMywgMzMpOyBmb250LXNp
emU6IDEzcHg7Ij5UaGFua3MsPC9kaXY+PGRpdiBzdHlsZT0iY29sb3I6IHJnYigzMywgMzMsIDMz
KTsgZm9udC1zaXplOiAxM3B4OyI+WmFhazwvZGl2Pg==" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div></div><div style="color:rgb(33,33,33);font-size:13px"></div></div>