mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 06:35:03 +01:00
cmake: Add workaround libpcre bundle issue (GH #120)
- Include only the required files, unbundle the rest
This commit is contained in:
parent
5cd1986ff3
commit
42d8b3973f
@ -185,6 +185,12 @@ if (POCO_UNBUNDLED)
|
|||||||
set(SYSLIBS ${SYSLIBS} ${PCRE_LIBRARIES})
|
set(SYSLIBS ${SYSLIBS} ${PCRE_LIBRARIES})
|
||||||
include_directories(${PCRE_INCLUDE_DIRS})
|
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)
|
find_package(ZLIB REQUIRED)
|
||||||
set(SYSLIBS ${SYSLIBS} ${ZLIB_LIBRARIES})
|
set(SYSLIBS ${SYSLIBS} ${ZLIB_LIBRARIES})
|
||||||
include_directories(${ZLIB_INCLUDE_DIRS})
|
include_directories(${ZLIB_INCLUDE_DIRS})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user