From 5a60ac1f338ae493971530ffdb47b8e9c6e493b6 Mon Sep 17 00:00:00 2001 From: Nobleman <8305511+smac89@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:40:14 -0500 Subject: [PATCH] Update poco/xmake.lua Don't make any changes to the build files when compiled in shared mode. --- packages/p/poco/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/p/poco/xmake.lua b/packages/p/poco/xmake.lua index c124d887acc..3a0a5784479 100644 --- a/packages/p/poco/xmake.lua +++ b/packages/p/poco/xmake.lua @@ -175,7 +175,7 @@ package("poco") end -- Todo: need to fix pcre2 -- pcre2 has a partial problem with the static library, resulting in missing macros in poco's foundation module; the shared library has no problems - if package:version():ge("1.12.0") and not package:dep("pcre2"):config("shared") then + if package:version():ge("1.12.0") and not package:config("shared") and not package:dep("pcre2"):config("shared") then io.replace("Foundation/CMakeLists.txt", "PUBLIC POCO_UNBUNDLED", "PUBLIC POCO_UNBUNDLED PCRE_STATIC") io.replace("Foundation/CMakeLists.txt", "POCO_SOURCES%(SRCS RegExp.-%)", "") io.replace("cmake/FindPCRE2.cmake", "NAMES pcre2-8", "NAMES pcre2-8-static pcre2-8", {plain = true})