[vcpkg_copy_pdbs] Force output to be in en-us. Resolves #587

This commit is contained in:
Alexander Karatarakis 2017-01-25 18:32:24 -08:00
parent 8ff736c6a4
commit 8b602f97c8

View File

@ -13,6 +13,9 @@ function(vcpkg_copy_pdbs)
set(DLLS_WITHOUT_MATCHING_PDBS)
set(PREVIOUS_VSLANG $ENV{VSLANG})
set(ENV{VSLANG} 1033)
foreach(DLL ${DLLS})
execute_process(COMMAND dumpbin /PDBPATH ${DLL}
COMMAND findstr PDB
@ -31,6 +34,8 @@ function(vcpkg_copy_pdbs)
endif()
endforeach()
set(ENV{VSLANG} ${PREVIOUS_VSLANG})
list(LENGTH DLLS_WITHOUT_MATCHING_PDBS UNMATCHED_DLLS_LENGTH)
if(UNMATCHED_DLLS_LENGTH GREATER 0)
merge_filelist(MSG DLLS_WITHOUT_MATCHING_PDBS)