[CMake] TARGET_LINK_LIBRARIES with full path libraries

Nils Gladitz nilsgladitz at gmail.com
Wed Sep 17 10:33:25 EDT 2014


On 09/17/2014 02:50 PM, Volker Pilipp wrote:
> I see that /usr/lib64 (where libcurl.so.3 resides) is before
> /opt/XXX/lib (where libcurl.so.4 resides). That's why g++ links against
> the wrong library. However, this problem would not occur if I could stop
> cmake from replacing /opt/XXX/lib/libcurl.so by -lcurl :-(

Maybe you could bring this up on the issue tracker:
   http://public.kitware.com/Bug/my_view_page.php

I am not entirely sure what the proper thing to do would be.

Nils




More information about the CMake mailing list