[CMake] link_directories issue, cmake 2.8.5

Vladimir Chebotarev vladimir.chebotarev at gmail.com
Fri Nov 25 06:06:02 EST 2011

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 wish, I could make further investigations about link_directories.

Best Regards,

More information about the CMake mailing list