Lightning Talk: Not Much option() Left - Surviving CMake With Toolchain Files
summary
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
related talks
01h 04mBetter CMake: A World Tour of Build Systems - Better C++ Builds
01h 02mDeep CMake for Library Authors
57mKeynote: How To Address 7 Major C++ Pain Points with Tools
01h 14m“Using build2, C++ Build Toolchain"
01h 17mThe Importance of the C++ Build System Target Model
58m"Just switch the compiler", they said
06mLightning Talk: Do You Love or Hate Your C++ Build System?
46mBuilding and Packaging Modern C++
