Add detection for poppler 0.64

This commit is contained in:
Albert Astals Cid 2018-03-20 23:13:24 +01:00
parent 5c04f0834d
commit adfb3cc2d6
2 changed files with 13 additions and 0 deletions

View file

@ -72,6 +72,16 @@ int main()
}
" HAVE_POPPLER_0_63)
check_cxx_source_compiles("
#include <poppler-qt5.h>
#include <poppler-form.h>
int main()
{
Poppler::FormField *f;
f->setReadOnly(true);
}
" HAVE_POPPLER_0_64)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/config-okular-poppler.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-okular-poppler.h

View file

@ -24,3 +24,6 @@
/* Defined if we have the 0.63 version of the Poppler library */
#cmakedefine HAVE_POPPLER_0_63 1
/* Defined if we have the 0.64 version of the Poppler library */
#cmakedefine HAVE_POPPLER_0_64 1