summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-03-31 09:50:55 +0800
committerErik Kundiman <erik@megapahit.org>2026-03-31 09:50:55 +0800
commit950815943ac6f31e9135be1b22b397dfa47a9761 (patch)
treee3a91a8504708929ab5fec9a0f1c7c50d0b61689
parentd0c2b233c05b2adf05244d343a3856d260ba6f05 (diff)
Add "minizip" to its pkgconf include dir variable
on Arch and macOS. Somehow `pkg-config --cflags minizip` of current minizip packages on those 2 OSes doesn't include the encapsulating folder "minizip".
-rw-r--r--indra/cmake/LLPrimitive.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/cmake/LLPrimitive.cmake b/indra/cmake/LLPrimitive.cmake
index 09413c912d..ec17c82e27 100644
--- a/indra/cmake/LLPrimitive.cmake
+++ b/indra/cmake/LLPrimitive.cmake
@@ -21,6 +21,9 @@ endif()
if (TRUE)
include(FindPkgConfig)
pkg_check_modules(Minizip REQUIRED minizip)
+ if (${LINUX_DISTRO} MATCHES arch OR DARWIN)
+ set(Minizip_INCLUDE_DIRS ${Minizip_INCLUDE_DIRS}/minizip)
+ endif ()
pkg_check_modules(Libxml2 REQUIRED libxml-2.0)
target_link_libraries( ll::minizip-ng INTERFACE ${Minizip_LIBRARIES} )
target_link_libraries( ll::libxml INTERFACE ${Libxml2_LIBRARIES} )