2020-10-27 14:11:26 +08:00
|
|
|
diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
|
|
|
|
index 6b276be..f093991 100644
|
|
|
|
--- a/Foundation/CMakeLists.txt
|
|
|
|
+++ b/Foundation/CMakeLists.txt
|
|
|
|
@@ -35,7 +35,7 @@ POCO_MESSAGES(SRCS Logging src/pocomsg.mc)
|
|
|
|
# If POCO_UNBUNDLED is enabled we try to find the required packages
|
|
|
|
# The configuration will fail if the packages are not found
|
|
|
|
if(POCO_UNBUNDLED)
|
|
|
|
- find_package(PCRE REQUIRED)
|
|
|
|
+ find_package(unofficial-pcre CONFIG REQUIRED)
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
|
|
|
|
#HACK: Unicode.cpp requires functions from these files. The can't be taken from the library
|
|
|
|
@@ -101,7 +101,7 @@ set_target_properties(Foundation
|
|
|
|
)
|
|
|
|
|
|
|
|
if(POCO_UNBUNDLED)
|
|
|
|
- target_link_libraries(Foundation PUBLIC Pcre::Pcre ZLIB::ZLIB)
|
|
|
|
+ target_link_libraries(Foundation PUBLIC unofficial::pcre::pcre ZLIB::ZLIB)
|
|
|
|
target_compile_definitions(Foundation PUBLIC POCO_UNBUNDLED)
|
|
|
|
endif(POCO_UNBUNDLED)
|
|
|
|
|