[CMake] link_directories issue, cmake 2.8.5
Michael Hertling
mhertling at online.de
Thu Nov 24 21:37:38 EST 2011
On 11/23/2011 05:39 PM, Vladimir Chebotarev wrote:
> Hello.
>
> 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.
Regards,
Michael
[1] http://www.mail-archive.com/cmake@cmake.org/msg39264.html
More information about the CMake
mailing list