I have a static library project UserInterface that contains the following module:
// Foo.ixx
export module Foo;
export void MyFunc();
void MyFunc()
{
[]() {};
}
The module Foo is imported in the main header of the library like this:
// NuiLibrary.hpp
#pragma once
import Foo;
// Windows
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
// other includes
I cannot build the solution, I can build the static library but in my Sculpt project that references the library I get these errors:

After much search I think it's because modules need to be included explicitly in the client solution by setting Additional Module Dependencies.

What's the syntax for it ?
Why doesn't it just work despite setting this:



