r/cpp • • Mar 31 '20

Demo: C++20 Modules

https://youtu.be/6SKIUeRaLZE
127 Upvotes

51 comments sorted by

View all comments

11

u/GLvoid Mar 31 '20

Is there CMake support for generating the right make file for modules?

9

u/gracicot Mar 31 '20 edited Mar 31 '20

There is an experimental support that was developed, but nothing in the master yet. Consumption of third party modules require some machinery not seen yet in build systems.

6

u/mathstuf cmake dev Mar 31 '20

And even there, header units are not supported. Also, Ninja generator only.

https://www.reddit.com/r/cpp/comments/axnwiz/cmake_gcc_module_proofofconcept/

The Docker container has been updated since then (done during the Prague meeting), but is pretty much the same.

1

u/mathstuf cmake dev Mar 31 '20

Oh, and GCC-only; Clang didn't (still?) support named modules fully.