On 08/24/2011 06:19 PM, Lars Bilke wrote:
> Dear CMake-users,
> 
> is it possible to remove a library which is linked to a target. The library 
> linkage was added with the target_link_libraries command. Because of that 
> this command gets called by a third party cmake script removing the command 
> call is not an option.
> 
> Do you have any ideas?
> Thanks,
> Lars.

AFAIK, the linking effect of TARGET_LINK_LIBRARIES() can't be removed,
and usually, that's perfectly OK. In general, TARGET_LINK_LIBRARIES()
is not called just for fun but because a target *needs* to be linked
against a library. If this linkage turns out to be problematic later
on, something else is substantially wrong, IMO. Could you outline
your concern in more detail?

Regards,

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