vcpkg/docs/maintainers/vcpkg_copy_pdbs.md
Jack·Boos·Yu 2b20b27b0d
[docs] Fix the automatically generated document URL (#16611)
* [document] Fix the automatically generated document URL

* [docs] Format all documents
2021-03-10 11:56:07 -06:00

997 B

vcpkg_copy_pdbs

The latest version of this document lives in the vcpkg repo.

Automatically locate pdbs in the build tree and copy them adjacent to all DLLs.

vcpkg_copy_pdbs(
    [BUILD_PATHS <glob>...])

The <glob>s are patterns which will be passed to file(GLOB_RECURSE), for locating DLLs. It defaults to using:

  • ${CURRENT_PACKAGES_DIR}/bin/*.dll
  • ${CURRENT_PACKAGES_DIR}/debug/bin/*.dll

since that is generally where DLLs are located.

Notes

This command should always be called by portfiles after they have finished rearranging the binary output.

Examples

Source

scripts/cmake/vcpkg_copy_pdbs.cmake