Skip to content

Commit

Permalink
Update poco/xmake.lua
Browse files Browse the repository at this point in the history
Don't make any changes to the build files when compiled in shared mode.
  • Loading branch information
smac89 authored Nov 15, 2024
1 parent 510c431 commit 5a60ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/p/poco/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 5a60ac1

Please sign in to comment.