Guide26.2K views3,692 votes0 replies4,503 following
Modern CMake: Managing Transitive Dependencies with Targets
Use PUBLIC, PRIVATE, and INTERFACE on targets instead of global commands so CMake propagates include paths and link dependencies transitively and correctly.