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

Target's group is incorrectly set #5794

Closed
01Pollux opened this issue Nov 6, 2024 · 1 comment
Closed

Target's group is incorrectly set #5794

01Pollux opened this issue Nov 6, 2024 · 1 comment
Labels
Milestone

Comments

@01Pollux
Copy link

01Pollux commented Nov 6, 2024

Xmake Version

xmake v2.9.6+HEAD.abd15c255

Operating System Version and Architecture

Windows 11 23H2

Describe Bug

The targets group gets correctly set when there is a matching subgroups' name inside the hierarchy
image

Expected Behavior

Each subgroups must be unique if the parent's group name is different.
image

Project Configuration

add_rules("mode.debug")

target("console_app1")
    set_kind("binary")
    add_files("a.cpp")
    set_group("Group1/Group2")
target_end()

target("console_app2")
    set_kind("binary")
    add_files("b.cpp")
    set_group("Group4/Group2")
target_end()

Additional Information and Error Logs

C:\...> xmake project -k vsxmake -yvD
checking for platform ... windows
checking for architecture ... x64
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.42.34432
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
configure
{
    kind = static
    theme = default
    host = windows
    vs = 2022
    network = public
    ccache = true
    mode = release
    buildir = build
    clean = true
    plat = windows
    arch = x64
    ndk_stdcxx = true
    proxy_pac = pac.lua
}
using project kind vs2022
checking for debug.x64 ...
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.42.34432
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\bin\HostX64\x64\cl.exe
checking for the c compiler (cc) ... cl.exe
create ok!
@waruqi
Copy link
Member

waruqi commented Nov 7, 2024

try this patch again. #5795

xmake update -s github:xmake-io/xmake#group

@waruqi waruqi added this to the v2.9.7 milestone Nov 7, 2024
@waruqi waruqi closed this as completed Nov 8, 2024
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