2017-05-25 14:33:16 +08:00
|
|
|
# vcpkg_copy_pdbs
|
|
|
|
|
2021-03-11 01:56:07 +08:00
|
|
|
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_copy_pdbs.md).
|
2021-03-01 05:17:19 +08:00
|
|
|
|
2017-05-25 14:33:16 +08:00
|
|
|
Automatically locate pdbs in the build tree and copy them adjacent to all DLLs.
|
|
|
|
|
|
|
|
```cmake
|
2021-03-01 05:17:19 +08:00
|
|
|
vcpkg_copy_pdbs(
|
|
|
|
[BUILD_PATHS <glob>...])
|
2017-05-25 14:33:16 +08:00
|
|
|
```
|
|
|
|
|
2021-03-01 05:17:19 +08:00
|
|
|
The `<glob>`s are patterns which will be passed to `file(GLOB_RECURSE)`,
|
|
|
|
for locating DLLs. It defaults to using:
|
2017-05-25 14:33:16 +08:00
|
|
|
|
2021-03-01 05:17:19 +08:00
|
|
|
- `${CURRENT_PACKAGES_DIR}/bin/*.dll`
|
|
|
|
- `${CURRENT_PACKAGES_DIR}/debug/bin/*.dll`
|
2018-06-17 00:42:25 +08:00
|
|
|
|
2021-03-01 05:17:19 +08:00
|
|
|
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.
|
2018-06-17 00:42:25 +08:00
|
|
|
|
2017-05-25 14:33:16 +08:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
* [zlib](https://github.com/Microsoft/vcpkg/blob/master/ports/zlib/portfile.cmake)
|
|
|
|
* [cpprestsdk](https://github.com/Microsoft/vcpkg/blob/master/ports/cpprestsdk/portfile.cmake)
|
|
|
|
|
|
|
|
## Source
|
2021-03-01 05:17:19 +08:00
|
|
|
[scripts/cmake/vcpkg\_copy\_pdbs.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_copy_pdbs.cmake)
|