2017-05-25 14:33:16 +08:00
|
|
|
# vcpkg_copy_pdbs
|
|
|
|
|
|
|
|
Automatically locate pdbs in the build tree and copy them adjacent to all DLLs.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
```cmake
|
2018-06-17 00:42:25 +08:00
|
|
|
vcpkg_copy_pdbs([BUILD_PATHS <${CURRENT_PACKAGES_DIR}/bin/*.dll> ...])
|
2017-05-25 14:33:16 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## 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
|
|
|
## Parameters
|
|
|
|
### BUILD_PATHS
|
|
|
|
Path patterns passed to `file(GLOB_RECURSE)` for locating dlls.
|
|
|
|
|
|
|
|
Defaults to `${CURRENT_PACKAGES_DIR}/bin/*.dll` and `${CURRENT_PACKAGES_DIR}/debug/bin/*.dll`.
|
|
|
|
|
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-02-09 05:55:11 +08:00
|
|
|
[scripts/cmake/vcpkg_copy_pdbs.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_copy_pdbs.cmake)
|