Thanks Brad for the reference, really appreciated. Some of 16228 seems relevant. Other parts unfortunately not because 16228: - tries to deal with all the crazy ways users can use symbolic links, including relative paths and relative links, - tries to deal with all the ways users can invoke cmake, - naturally cares about backward compatibility, - goes deep into the implementation details, - refers to other issues with even more implementation details.
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? 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? -B is a brand new option so there's only so much backward compatibility it has to care about, right? 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. Thanks! Marc Le jeu. 30 mai 2019 à 07:15, Brad King <brad.k...@kitware.com> a écrit : > On 5/30/19 3:22 AM, Marc Herbert wrote: > > IF the current directory is a parent of the -S argument AND > > one component of the current directory is a symbolic link THEN > > the leading part of the -S argument is overridden using that > > symbolic link. > > See this issue: > > https://gitlab.kitware.com/cmake/cmake/issues/16228 > > -Brad >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake