20 Mar
2024
20 Mar
'24
8:19 p.m.
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.