[libwebm] Fix no-postfix in debug for dll/lib/pdb (#5516)

This commit is contained in:
LarryIII 2019-03-04 23:52:07 -08:00 committed by Phil Christensen
parent 9f622a5765
commit aff64f83fd
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,3 @@
Source: libwebm
Version: 1.0.0.27-3
Version: 1.0.0.27-4
Description: WebM File Parser

View File

@ -24,8 +24,18 @@ vcpkg_configure_cmake(
)
vcpkg_install_cmake()
if((NOT VCPKG_CMAKE_SYSTEM_NAME) AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/bin/libwebm.dll ${CURRENT_PACKAGES_DIR}/debug/bin/libwebmd.dll)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/webm.lib ${CURRENT_PACKAGES_DIR}/debug/lib/webmd.lib)
endif()
vcpkg_copy_pdbs()
if((NOT VCPKG_CMAKE_SYSTEM_NAME) AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/bin/libwebm.pdb ${CURRENT_PACKAGES_DIR}/debug/bin/libwebmd.pdb)
endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(COPY ${SOURCE_PATH}/LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/libwebm)