Skip to content

llvm toolchain - vcpkg integration - lld-linker error  #4359

@Neumann-A

Description

@Neumann-A

Using the lld-linker I get the following error:

1>lld-link.exe : error : could not open C:\Sources\Extern\vcpkg\installed\x64-windows-static\lib*.lib: invalid argument

apparently the lld-linker does not like to include libraries by wildcards.

The problem lies within:
\scripts\buildsystems\msbuild\vcpkg.targets
line 62 & 63

where
%(AdditionalDependencies);$(VcpkgRoot)debug\lib*.lib
%(AdditionalDependencies);$(VcpkgRoot)lib*.lib
is defined.

So it would be very nice if vcpkg would add and extra item for itself to the project configuration (like the llvm toolchain) so that I can easily change the values of $(VcpkgAutoLink), $(VcpkgTriplet), $(VcpkgEnabled) and maybe even $(VcpkgRoot).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions