diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-11-17 00:28:54 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-11-17 00:28:54 -0800 |
| commit | 22108321c032c7417e98ba6afc0d72f91042a40a (patch) | |
| tree | ea2623a7f6e14bd0e6c902935fb6e62b7d373cf3 /ports/pcre | |
| parent | 6455cdd68f2e5be0b987c55f3f6a6e642abfd2e8 (diff) | |
| download | vcpkg-22108321c032c7417e98ba6afc0d72f91042a40a.tar.gz vcpkg-22108321c032c7417e98ba6afc0d72f91042a40a.zip | |
[pcre] [poco] Hardcode value of PCRE_STATIC into the pcre headers. Switch poco to use unbundled libs.
Diffstat (limited to 'ports/pcre')
| -rw-r--r-- | ports/pcre/CONTROL | 2 | ||||
| -rw-r--r-- | ports/pcre/portfile.cmake | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/ports/pcre/CONTROL b/ports/pcre/CONTROL index eb6863b38..cf6d6c2a5 100644 --- a/ports/pcre/CONTROL +++ b/ports/pcre/CONTROL @@ -1,4 +1,4 @@ Source: pcre -Version: 8.38 +Version: 8.38-1 Description: Perl Compatible Regular Expresions Build-Depends: zlib diff --git a/ports/pcre/portfile.cmake b/ports/pcre/portfile.cmake index 0dcc8a97c..8fd6c8819 100644 --- a/ports/pcre/portfile.cmake +++ b/ports/pcre/portfile.cmake @@ -32,6 +32,16 @@ vcpkg_configure_cmake( vcpkg_install_cmake() +foreach(FILE ${CURRENT_PACKAGES_DIR}/include/pcre.h ${CURRENT_PACKAGES_DIR}/include/pcreposix.h) + file(READ ${FILE} PCRE_H) + if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + string(REPLACE "defined(PCRE_STATIC)" "1" PCRE_H "${PCRE_H}") + else() + string(REPLACE "defined(PCRE_STATIC)" "0" PCRE_H "${PCRE_H}") + endif() + file(WRITE ${FILE} "${PCRE_H}") +endforeach() + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) |
