Skip to content

Commit

Permalink
tiff patching workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mmozeiko committed Mar 2, 2025
1 parent b1901b2 commit 2983a97
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ cmake.exe %CMAKE_COMMON_ARGS% ^
|| exit /b 1
ninja.exe -C %BUILD%\tiff-%TIFF_VERSION% install || exit /b 1

call git apply -p1 --directory=depend-%TARGET_ARCH% patches/tiff.patch || exit /b 1
call git apply -p1 --directory=depend-%TARGET_ARCH% patches/tiff.patch || ^
call git apply -p1 --directory=depend-%TARGET_ARCH% patches/tiff2.patch || exit /b 1

rem
rem aom
Expand Down
13 changes: 13 additions & 0 deletions patches/tiff2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lib/cmake/tiff/TiffTargets.cmake a/lib/cmake/tiff/TiffTargets.cmake
index a96d30b..7c2606c 100644
--- a/lib/cmake/tiff/TiffTargets.cmake
+++ a/lib/cmake/tiff/TiffTargets.cmake
@@ -60,7 +60,7 @@ add_library(TIFF::tiff STATIC IMPORTED)

set_target_properties(TIFF::tiff PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
- INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:ZLIB::ZLIB>;\$<LINK_ONLY:JPEG::JPEG>;\$<LINK_ONLY:JBIG::JBIG>;\$<LINK_ONLY:LERC::LERC>;\$<LINK_ONLY:liblzma::liblzma>;\$<LINK_ONLY:WebP::webp>"
+ INTERFACE_LINK_LIBRARIES "zlibstatic.lib;jpeg-static.lib;jbig.lib;Lerc.lib;lzma.lib;zstd_static.lib;\$<LINK_ONLY:WebP::webp>"
)

# Load information for each installed configuration.

0 comments on commit 2983a97

Please sign in to comment.