28 May
2021
28 May
'21
3:13 p.m.
Andrey Semashev wrote:
The CMakeLists.txt that is in the root library directory is used when the library is built or consumed by users. So, the PRIVATE dependencies are those required to build the library (but not to consume it) and PUBLIC - those required to consume it. IOW, the dependencies from source files normally go in PRIVATE section and from headers - in PUBLIC.
Yep. boostdep --cmake does this automatically for compiled libraries - the dependencies from include/ are marked PUBLIC and those from src/ are marked as PRIVATE. This doesn't apply to Geometry because it's header-only.