~/talk

Link What You Include - Maintain a Coherent CMake Target Model

Talkat C++Now 2026 · 2026-05-04..05-08· [devops-and-delivery]
links:none on file
slides:none on file

Tool enforces that CMake target link libraries match actual includes: if a target’s source or interface headers include B then CMake must list B, and vice versa. It ships as a CMake module that emits a JSON model, uses Clang libtooling on a compile_commands database, and maps headers to targets via verify interface header sets or include prefixes. A link-what-you-include run reports missing/extra links; a tidy mode flags forbidden deps and prevents growth of cyclic clusters. Open source on GitHub, single-config + export compile_commands required, intended for CI/PR checks.

AI-written summary · about

  1. 0:00Introduction
  2. 9:25Modular architecture challenges
  3. 17:30CMake target model limits
  4. 27:42Modern CMake target model
  5. 35:45Link what you include rules
  6. 42:47Using the link tool
  7. 59:59Missing header manifests
  8. 1:08:25Enforcing coherent model
  9. 1:13:23Breaking cyclic dependencies
  10. 1:18:59Recommendations and goals
  11. 1:27:43Closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.