How to use c++20 modules with CMake?
问题 Clang and MSVC already supports Modules TS from unfinished C++20 standard. Can I build my modules based project with CMake or other build system and how? I tried build2, it supports modules and it works very well, but i have a question about it's dependency management (UPD: question is closed). 回答1: This works on Linux Manjaro (same as Arch), but should work on any Unix OS. Of course, you need to build with new clang (tested with clang-10). helloworld.cpp: export module helloworld; import