premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

How to open c++20 modules feature?

Open ericyonng opened this issue 1 year ago • 2 comments

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!

ericyonng avatar Aug 31 '24 10:08 ericyonng

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

Jarod42 avatar Aug 31 '24 16:08 Jarod42

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

That's it, thanks!

ericyonng avatar Sep 01 '24 08:09 ericyonng