summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/DefineDependsandFlags.cmake
diff options
context:
space:
mode:
authorLuca Bruno <lucab@debian.org>2012-06-30 19:43:45 +0000
committerLuca Bruno <lucab@debian.org>2012-06-30 19:43:45 +0000
commit8ccb359f4d190740e7c56cc5a145b5a8f67d14b3 (patch)
treefe7daf717d89fe762f58583b36af0e00a8287ece /CMakeScripts/DefineDependsandFlags.cmake
parentAllow cairomm 1.9.8. Should be good enough (diff)
downloadinkscape-8ccb359f4d190740e7c56cc5a145b5a8f67d14b3.tar.gz
inkscape-8ccb359f4d190740e7c56cc5a145b5a8f67d14b3.zip
Fix building with Poppler 0.20 (LP: #1005565)
Poppler >= 0.20 has a new internal API for errors and other miscellanea. As we are abusing these internal functionalities, they broke from time to time. Fixing it for now with a new conditional build flag. This fixes https://bugs.launchpad.net/inkscape/+bug/1005565 (bzr r11518)
Diffstat (limited to 'CMakeScripts/DefineDependsandFlags.cmake')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index ccfff8a40..4c00057f8 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -78,6 +78,10 @@ if(POPPLER_FOUND)
POPPLER_VERSION VERSION_EQUAL "0.15.1")
set(POPPLER_NEW_GFXPATCH ON)
endif()
+ if(POPPLER_VERSION VERSION_GREATER "0.20.0" OR
+ POPPLER_VERSION VERSION_EQUAL "0.20.0")
+ set(POPPLER_NEW_ERRORAPI ON)
+ endif()
else()
set(ENABLE_POPPLER_CAIRO OFF)
endif()