aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tmxlite/dependencies.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tmxlite/dependencies.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tmxlite/dependencies.patch')
-rw-r--r--vcpkg/ports/tmxlite/dependencies.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/tmxlite/dependencies.patch b/vcpkg/ports/tmxlite/dependencies.patch
new file mode 100644
index 0000000..e061806
--- /dev/null
+++ b/vcpkg/ports/tmxlite/dependencies.patch
@@ -0,0 +1,29 @@
+diff --git a/tmxlite/CMakeLists.txt b/tmxlite/CMakeLists.txt
+index a1b1882..8c0aad6 100644
+--- a/tmxlite/CMakeLists.txt
++++ b/tmxlite/CMakeLists.txt
+@@ -68,10 +68,9 @@ if(USE_EXTLIBS)
+ SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
+
+ find_package(ZLIB REQUIRED)
+- find_package(PUGIXML REQUIRED)
+- find_package(Zstd REQUIRED)
++ find_package(pugixml CONFIG REQUIRED)
++ find_package(zstd CONFIG REQUIRED)
+
+- include_directories(${ZLIB_INCLUDE_DIRS} ${PUGIXML_INCLUDE_DIR} ${ZSTD_INCLUDE_DIR})
+
+ else()
+ #add miniz and pugixml from source
+@@ -102,7 +101,10 @@ else()
+ endif()
+
+ if(USE_EXTLIBS)
+- target_link_libraries(${PROJECT_NAME} ${ZLIB_LIBRARIES} ${PUGIXML_LIBRARY} ${ZSTD_LIBRARY})
++ target_link_libraries(${PROJECT_NAME} PRIVATE
++ $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>
++ pugixml::pugixml
++ ZLIB::ZLIB)
+ else()
+ if(USE_ZSTD)
+ target_link_libraries(${PROJECT_NAME} ${ZSTD_LIBRARY})