import CMake; // Mastering C++ Modules
Talkat CppCon 2024 · on Friday, 2024-09-20· at 09:00· Maple 3/4/5, 6700 North Gaylord Rockies Boulevard·
summary
CMake now has non‑experimental named module support and an experimental import std flow, with specific notes: CMake 3.28 non‑experimental named modules, 3.29 import‑std experimental. The talk shows concrete tooling: Ninja dynamic‑dependency patches, compiler BMI/IFC outputs, and the need to build clang and CMake and ninja patches to try things locally. A run against open projects tries 17 libraries tried 3 worked (compile succeeded but many lacked install rules); examples like compile‑time regex build and run successfully.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 5:20Why CMake and modules matter
- 7:29Named C++ modules
- 10:19CMake’s Fortran modules
- 13:58C++ modules in CMake
- 16:54CMake file sets for modules
- 18:41Named module anatomy
- 21:54Compiler and tools setup
- 23:39CTRE with modules
- 27:12Import std in CMake 3.29
- 34:41Next steps
- 35:48Import std under the hood
- 43:44Resources and tools
- 47:14Q&A
related talks
01h 09mC++ Modules: Getting Started Today
01h 04mC++ Modules - Getting started today
01h 00mSo, you want to use C++ Modules ... cross-platform?
01h 02mModern CMake Modules
54mCMake for the Impatient
01h 01mClean CMake for C++ (library) developers
55mModern CMake for modular design
01h 17mThe Importance of the C++ Build System Target Model
