Skip to content

Commit

Permalink
Merge pull request microsoft#1698 from codicodi/fix-expat
Browse files Browse the repository at this point in the history
[expat] drop debug suffix
  • Loading branch information
alexkaratarakis authored Aug 24, 2017
2 parents 26c8cb5 + 9a1618c commit 515d732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ports/expat/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: expat
Version: 2.2.4
Version: 2.2.4-1
Description: XML parser library written in C
3 changes: 3 additions & 0 deletions ports/expat/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 515d732

Please sign in to comment.