[vcpkg-script] vcpkg_copy_pdbs() modify the regular matching of the pdb file path (#41609)

This commit is contained in:
jim wang 2024-11-07 09:43:56 +00:00 committed by GitHub
parent 8e7f6491ae
commit 6dbc951463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}")