<div dir="ltr">Thanks Brad for the reference, really appreciated. Some of 16228 seems relevant. Other parts unfortunately not because 16228:<div>- tries to deal with all the crazy ways users can use symbolic links, including relative paths and relative links,<br></div><div>- tries to deal with all the ways users can invoke cmake,</div><div>- naturally cares about backward compatibility,</div><div><div>- goes deep into the implementation details,</div><div>- refers to other issues with even more implementation details.</div><div><br></div><div>So I'm admittedly getting lost in all the details and combinatorial explosion. Because 16228 looks like a bug I suspect the behaviour I described is also considered a bug but I'm not even sure?</div><div><br></div><div>I believe the example I gave is one of the simplest and safest use cases of symbolic links that : passing both -B and -S, no relative path, no relative link. For such a "most explicit" use case, will future cmake versions be unaffected by the current directory?</div><div><br></div><div>-B is a brand new option so there's only so much backward compatibility it has to care about, right?</div><div><br></div><div>Long story short I think this admittedly complex topic could use some high level documentation or - if the symlink situation is hopelessly complicated and everything fails - at least a big "AVOID SYMLINKS [FOR NOW]" warning somewhere in the documentation. Fair enough? Sorry if I missed that.</div><div><br></div><div>Thanks!</div><div><br></div><div>Marc</div><br class="gmail-Apple-interchange-newline"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 30 mai 2019 à 07:15, Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/30/19 3:22 AM, Marc Herbert wrote:<br>
> IF the current directory is a parent of the -S argument AND<br>
> one component of the current directory is a symbolic link THEN<br>
> the leading part of the -S argument is overridden using that<br>
> symbolic link.<br>
<br>
See this issue:<br>
<br>
<a href="https://gitlab.kitware.com/cmake/cmake/issues/16228" rel="noreferrer" target="_blank">https://gitlab.kitware.com/cmake/cmake/issues/16228</a><br>
<br>
-Brad<br>
</blockquote></div>