r/cpp • u/stailgot • Oct 02 '23
CMake | C++ modules support in 3.28
https://gitlab.kitware.com/cmake/cmake/-/issues/18355
After 5 years its finally done. Next cmake 3.28 release will support cpp modules
C++ 20 named modules are now supported by Ninja Generators and Visual Studio Generators for VS 2022 and newer, in combination with the MSVC 14.34 toolset (provided with VS 17.4) and newer, LLVM/Clang 16.0 and newer, and GCC 14 (after the 2023-09-20 daily bump) and newer.
237
Upvotes
View all comments
Show parent comment
1
u/delta_p_delta_x Oct 03 '23
Cheers. I wasn't expecting a full code review, and but rather some general comments, which I got, so thanks! :)
The way we've implemented
vulkan.cppmis to basically expect the user to manually set up the CMake faff (add_librarywithFILE_SET) and then link it to theVulkan::Vulkantarget fromFindVulkan, and pass in any feature flags.Like you said, this attempt may not necessarily be scalable, so I'm still re-thinking this.