[expat] drop debug suffix

This commit is contained in:
codicodi 2017-08-24 21:45:00 +02:00
parent a3e607c8f1
commit 9a1618c8a5
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,3 @@
Source: expat
Version: 2.2.4
Version: 2.2.4-1
Description: XML parser library written in C

View File

@ -29,6 +29,9 @@ file(INSTALL ${SOURCE_PATH}/expat/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/sh
vcpkg_copy_pdbs()
# CMake's FindExpat currently doesn't look for expatd.lib
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/expatd.lib ${CURRENT_PACKAGES_DIR}/debug/lib/expat.lib)
file(READ ${CURRENT_PACKAGES_DIR}/include/expat_external.h EXPAT_EXTERNAL_H)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
string(REPLACE "!defined(XML_STATIC)" "/* vcpkg static build !defined(XML_STATIC) */ 0" EXPAT_EXTERNAL_H "${EXPAT_EXTERNAL_H}")