[CMake] How does :: actually works?

Klaim - Joël Lamotte mjklaim at gmail.com
Fri Jun 19 06:07:48 EDT 2015


On 17 June 2015 at 22:58, Stephen Kelly <steveire at gmail.com> wrote:

> Klaim - Joël Lamotte wrote:
>
> > Thinking about boost, if package files works well with header-only
> > libraries (which I
> > suppose it should as long as the boost define header-only targets)
> > then it would be very useful indeed.
>
> Yes, I wrote some cmake 3.0 features specifically for the Boost use cases
> (header only and lots of cyclic dependencies).
>
> > Then I have to have all my libraries to link with all the boost libraries
> > listed in the boost
> > library variable generated by FindBoost.
>
> I don't have working knowledge of FindBoost, so I can't give a good answer.
> The documentation at the top of the file says it creates a variable per
> library though.
>
>
Yes it seems that I missed that part when I worked on it,
totally my mistake.


> > If I understand correctly, if FindBoost was supporting imported targets
> > and using "Boost" as a
> > namespace (like Qt does), then I could link my libraries to boost
> > libraries in a more
> > precise way as I would link each library separately instead of everything
> > FindBoost
> > put in the boost libraries variable.
>
> This still has other advantages anyway, such as transitivity, conciseness,
> consistency, better error messages etc.
>
> Thanks,
>
> Steve.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150619/47393f39/attachment.html>


More information about the CMake mailing list