cmake: Add workaround libpcre bundle issue (GH #120)

- Include only the required files, unbundle the rest
This commit is contained in:
Pascal Bach 2014-07-13 15:58:05 +02:00
parent 5cd1986ff3
commit 42d8b3973f

View File

@ -185,6 +185,12 @@ if (POCO_UNBUNDLED)
set(SYSLIBS ${SYSLIBS} ${PCRE_LIBRARIES})
include_directories(${PCRE_INCLUDE_DIRS})
#HACK: Unicode.cpp requires functions from these files. The can't be taken from the library
list(APPEND BASE_SRCS
src/pcre_ucd.c
src/pcre_tables.c
)
find_package(ZLIB REQUIRED)
set(SYSLIBS ${SYSLIBS} ${ZLIB_LIBRARIES})
include_directories(${ZLIB_INCLUDE_DIRS})