Relative Content

Tag Archive for visual-studiocmakec++20c++-modules

Add C++20 module dependency for Visual Studio project using CMake

I have a static library A that has a dependency to another static library B with a C++20-module. In order to be able to import the module from B in A, I have to add the module ifc-file to the “Additional Module Dependencies” in the project settings in Visual Studio, otherwise the msvc compiler doesn’t recognize the module: