Skip to content

Glossary: C++ Beyond the Basics

PUBLIC and PRIVATE

Also written: PUBLIC, PRIVATE

Keywords in `target_link_libraries`. `PRIVATE` means only this target needs the dependency, while `PUBLIC` also passes it on to every target linking this one.

Where the book teaches it

Related terms

Library targetfind_package