Add detection for poppler 0.64

remotes/origin/Applications/18.04
Albert Astals Cid 8 years ago
parent 5c04f0834d
commit adfb3cc2d6
  1. 10
      generators/poppler/CMakeLists.txt
  2. 3
      generators/poppler/config-okular-poppler.h.cmake

@ -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

@ -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

Loading…
Cancel
Save