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
--

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

Reply via email to