Created: 2022-11-18 12:15

#cpp

Lei argues that the [[CMake]]’ interpretation of the keywords PUBLIC, PRIVATE and INTERFACE is much like the [[C++]] inheritance.

Suppose we have library A, B and C. To build library B we publicly link library A. If library C links against library B it automatically also links against library A. If instead we link B with A privately, when we link C against B, C is not automatically linked to A.