Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules from packages not added when generating vs projects #6070

Open
ShifftC opened this issue Jan 13, 2025 · 1 comment
Open

Modules from packages not added when generating vs projects #6070

ShifftC opened this issue Jan 13, 2025 · 1 comment
Labels

Comments

@ShifftC
Copy link
Contributor

ShifftC commented Jan 13, 2025

Xmake Version

2.9.7

Operating System Version and Architecture

Windows

Describe Bug

Modules from packages are not added when generating vs projects (both vs and vsxmake). Local modules and modules from other targets work as expected, building also works.

Expected Behavior

Modules from packages are recognized in vs projects.

Project Configuration

add_requires("magic_enum", {configs={modules=true}})

add_rules("mode.debug", "mode.release")
set_languages("c++23")

target("module_test")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("magic_enum")
    set_policy("build.c++.modules", true)

missing_module

Additional Information and Error Logs

Compilation works:

xmake build module_test
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.42.34435
[  0%]: <module_test> generating.module.deps src\main.cpp
[  0%]: <module_test> generating.module.deps C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\modules\std.ixx
[  0%]: <module_test> generating.module.deps F:\packages\.xmake\packages\m\magic_enum\v0.9.7\fdb5460ff3c64f3a824f1e422136da67\modules\7597f117\magic_enum.cppm
[  0%]: <module_test> generating.module.deps C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\modules\std.compat.ixx
[ 42%]: <module_test> compiling.module.release magic_enum
[ 71%]: compiling.release src\main.cpp
[ 85%]: linking.release module_test.exe
[100%]: build ok, spent 3.938s
@ShifftC ShifftC added the bug label Jan 13, 2025
@waruqi
Copy link
Member

waruqi commented Jan 13, 2025

vs project generator does not support modules now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants