summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeScripts')
-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()