mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:19:00 +08:00
[vcpkg-script] vcpkg_copy_pdbs() modify the regular matching of the pdb file path (#41609)
This commit is contained in:
parent
8e7f6491ae
commit
6dbc951463
@ -28,7 +28,7 @@ function(vcpkg_copy_pdbs)
|
||||
RESULT_VARIABLE error_code
|
||||
)
|
||||
|
||||
if(error_code EQUAL "0" AND pdb_line MATCHES "PDB file found at.*'(.*)'")
|
||||
if(error_code EQUAL "0" AND pdb_line MATCHES "PDB.*([A-Z]:.*\.pdb)")
|
||||
set(pdb_path "${CMAKE_MATCH_1}")
|
||||
cmake_path(GET dll PARENT_PATH dll_dir)
|
||||
file(COPY "${pdb_path}" DESTINATION "${dll_dir}")
|
||||
|
Loading…
Reference in New Issue
Block a user