~/lightning

Lightning Talk: Not Much option() Left - Surviving CMake With Toolchain Files

Lightningat C++ on Sea 2025 · 2025-06-23..06-25· [devops-and-delivery]
slides:none on file

CMake option() interacts badly with CMAKE_TOOLCHAIN_FILE: older CMake (around 3.12) reads options inconsistently unless you write cache variables or use FORCE, CMP-777 and CMP-126 later change that behavior, and newer CMake then makes toolchain-set options non-overridable from the command line. The uploader describes building a small helper called toolchain_overridable_option (open as a PR on HFC) that stores values in the cache and respects overrides across versions, fixing flaky builds caused by mixed option() vs cache behavior and the CMP-777/CMP-126 changes.

AI-written summary · about

~/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.