Open Belox86 opened 6 months ago
@Belox86 Thanks for posting this issue. Could you please provide an example? For example: After installing the port, the dependency dll is missing. :)
ok i will try to do an example:
My project has tinyxml2 as dependency which is available from the official vcpkg repository.
so in my vcpkg.json file i have:
"dependencies": [ { "name": "vcpkg-cmake", "host": true }, { "name":"tinyxml2" } ]
when i run cmake
and cmake --build
with -config Debug
the port is successfully installed and my application compiled.
In the folder myProject\build\Debug
i find the tinyxml2.dll
but not the tinyxml2.pdb
.
tinyxml2.pdb
is present only in the local vcpkg cache in myProject\build\vcpkg_installed\x64-windows\debug\bin
but not copied in the output directory along with its dll.
How can i have dependencies pdbs copy with dlls in output directory?
I just had the same issue after relocating the vcpkg installation. Try clearing the package archives (zips) and rebuilding the package from source. There is no need for the dependency pdbs to get copied into the output folder. MSVC will find them at their isntalled location.
cc @BillyONeal
I personally think that as long as the PDB file is generated at compile time, you need to copy the output directory
Discussed in https://github.com/microsoft/vcpkg/discussions/37828