[CMake] Remove a library from linking which was added with target_link_libraries
Michael Hertling
mhertling at online.de
Tue Aug 30 10:58:11 EDT 2011
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
More information about the CMake
mailing list