3 Nov
2021
3 Nov
'21
3:07 p.m.
Дмитрий Архипов wrote:
В письме от вторник, 2 ноября 2021 г. 22:32:37 MSK пользователь Niall Douglas via Boost написал:
The correct solution here is that b2 doesn't misrepresent header only libraries to cmake as not being INTERFACE libraries.
I've skimmed through boost-install code and I think this is doable. There's already a hard-coded list of b2 targets that should map to INTERFACE CMake targets, it should be possible to extend the logic to any alias target.
It's not so simple because dependencies are gathered when generating the build variants (as they may depend on the current properties) and header-only libraries have none. I think I'll just remove BOOST_ALL_NO_LIB for now and restore the behavior of the FindBoost helper targets.