|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2024-03-20 20:19:27
Andrey Semashev wrote:
> On 3/20/24 23:07, Peter Dimov via Boost wrote:
> > Dennis Luehring wrote:
> > ...
> >> find_package( Boost REQUIRED COMPONENTS locale ) add_executable(
> >> my_test main.cpp) target_link_libraries( my_test PRIVATE Boost::boost
> >> )
> > ...
> >> any idea what is happening here?
> >
> > Since Locale is a compiled library, you need to link to Boost::locale.
> >
> > target_link_libraries( my_test PRIVATE Boost::boost Boost::locale )
>
> What is the Boost::boost target?
It's the (FindBoost) target for all header-only libraries.
https://cmake.org/cmake/help/latest/module/FindBoost.html#imported-targets
We call this Boost::headers, but Boost::boost is also defined for compatibility.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk