premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.22k stars 621 forks source link

How to open c++20 modules feature? #2239

Open ericyonng opened 2 months ago

ericyonng commented 2 months ago

Env: linux/clang15 Premake Version: dev latest Hello, I'm building my projects using premak5, an error occurred: HelloFoo.cppm TestConceptModules.cpp ../../testsuit/testsuit/testinst/TestConceptModules/TestConceptModules.cpp:32:8: fatal error: module 'HelloFoo' not found.

My project: https://github.com/ericyonng/CrystalNet

parts of premake5.lua image image

HelloFoo module code: file:HelloFoo.cppm image

TestConceptModules.cpp file:

image

Thanks!

Jarod42 commented 2 months ago

As stated in doc, enablemodules is only available for visual studio.

ericyonng commented 2 months ago

As stated in doc, enablemodules is only available for visual studio.

That's it, thanks!