How to use c++20 modules with CMake?

后端 未结 4 544
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-03 22:27

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 bui

4条回答
  •  别那么骄傲
    2021-01-03 23:05

    CMake does not currently support C++20 modules like the others have stated. However, module support for Fortran is very similar, and perhaps this could be easily changed to support modules in C++20.

    http://fortranwiki.org/fortran/show/Build+tools

    Now, perhaps there i an easy way to modify this to support C++20 directly. Not sure. It is worth exploring and doing a pull request should you resolve it.

提交回复
热议问题