On 25.11.11 15:06:02, Vladimir Chebotarev wrote: > Hi, Michael. > > On Fri, Nov 25, 2011 at 03:37:38AM +0100, Michael Hertling wrote: > > On 11/23/2011 05:39 PM, Vladimir Chebotarev wrote: > > > I've just found an issue with link_directories and cmake 2.8.5. > > > If I give an absolute but not normalized path like > > > c:/bla-bla-bla/../bla/bla as its argument (with default CMP0015), > > > cmake thinks it is relative path and shows a warning about explicitly > > > undefined policy. > > > Also it normalizes path making it relative and actually makes a mistake > > > during that, so the final VC project can't find the path to library. > > > > Take that path, use it to fully specify the library's location and > > eliminate LINK_DIRECTORIES() from your project, cf. [1]. Then, if > > things still don't work, report anew on the persisting problems. > > Actually, I already have normalized the path by myself, using > get_filename_component, > and everything is ok at the moment. > Original message should have been treated as a bug report, however,
If you want to report a bug, report it on http://public.kitware.com/Bug/my_view_page.php. > if you wish, I could make further investigations about link_directories. The point that Michael tried to get across is that you avoid link_directories as much as possible. It has various drawbacks as explained in the link that Michael included. Andreas -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
