import CMake: // 2023 State of C++20 modules in CMake - Bill Hoffman - CppNow 2023

​ --- import CMake: // 2023 State of C 20 modules in CMake - Bill Hoffman - CppNow 2023 Slides: --- Since February 2019 when modules were applied to the C 20 working draft in Kona, the CMake team has been working to support modules in CMake. The decade long experience with Fortran modules provided a roadmap for handling modules in the build system. The main issue is that binary module interface files (BMIs) must exist before they can be imported. Since a BMI is not created until a translation unit (TU) is compiled, this puts a restriction on the ordering of the compilation TUs. It requires the build system to have the ability to know for each TU which modules are produced and what modules are consumed. This of course requires a C parser to accurately discover this information. Since C parsing is significantly more complicated than Fortran, mimicking the minimal Fortran parser built i
Back to Top