Skip to content

Commit 152abdf

Browse files
Properly link against pixman (when cairo is used) in poppler
1 parent 2d58541 commit 152abdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3rdparty/packages/FixPopplerSource.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ done
4545
# cut off the last \;
4646
PIXMAN_LIBS=${PIXMAN_LIBS%\;*}
4747

48-
sed -i "/macro_optional_find_package(Cairo \${CAIRO_VERSION})/a if(CAIRO_FOUND)\n SET(TIFF_LIBRARIES \"\${TIFF_LIBRARIES};$PIXMAN_LIBS\")\nendif(CAIRO_FOUND)" $CMAKELISTS
48+
sed -i "/set(poppler_LIBS \${FREETYPE_LIBRARIES})/a if(CAIRO_FOUND)\n set(poppler_LIBS \${poppler_LIBS} $PIXMAN_LIBS)\n endif()" $CMAKELISTS
4949

5050
echo "After paching:"
5151

0 commit comments

Comments
 (0)