-
Notifications
You must be signed in to change notification settings - Fork 2.4k
C++ Header-Only Libraries: Dependencies #2378
Description
One question I forgot to ask at SC16 is, how to handle depends_on of C++ header-only libraries.
A C++ header-only library can, e.g., introduce a dependency to boost (can again be header only but additionally also link-time). Currently, depends_on(type=...) "build" does not forward the include paths:
made available during the project’s build. The package will be added to PATH, the compiler include paths[...]. Other projects which depend on this one will not have these modified [...] (ref)
but the problem is, that a header-only library's build time does nothing and it's install only copies it's files.
The type "link" only adds the libraries (but not the includes). The last available option "run" does not apply here.
How to handle such libraries without forcing the user of those to look up all sub (sub-sub, sub-sub-sub) dependencies? Do we need a new "depends_on" type?