[CMake] How to deal with incompatible changes in interface of target_link_libraries()?

Marcel Loose marcel.loose at zonnet.nl
Sat Aug 16 11:03:23 EDT 2014


Op 12-08-14 om 15:06 schreef Brad King:
> On 08/12/2014 03:48 AM, Marcel Loose wrote:
>> On a side note. Even using the new PRIVATE and PUBLIC keywords I am
>> unable to exactly specify which libraries are needed for linking.
> 
> Can you provide a concrete example of this trouble?
I've further analyzed the problem, and figured out that the troubles I'm
facing are caused by the way I add libraries and executables to the
build. It's no big deal. Like I said, modern versions of ld will get rid
of unused libraries anyway, so the only remaining problem would be some
increased link time. I can live with that.
> 
> -Brad
> 
Cheers,
Marcel.



More information about the CMake mailing list