[poppler] CMakeLists.txt

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Aug 18 21:58:56 UTC 2018


 CMakeLists.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ce0f124ae2a50c51cae32b8c4e7559a9223ea3d5
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Aug 18 23:58:40 2018 +0200

    Make sure that the openjpeg we're getting is version 2

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4898274a..b814c62c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,7 +203,7 @@ set(WITH_OPENJPEG FALSE)
 if(ENABLE_LIBOPENJPEG STREQUAL "openjpeg2")
   find_package(OpenJPEG)
   set(WITH_OPENJPEG ${OpenJPEG_FOUND})
-  if(NOT OpenJPEG_FOUND)
+  if(NOT OpenJPEG_FOUND OR OPENJPEG_MAJOR_VERSION VERSION_LESS 2)
     message(FATAL_ERROR "Install libopenjpeg2 before trying to build poppler. You can also decide to use the internal unmaintained JPX decoder or none at all.")
   endif()
   set(HAVE_JPX_DECODER ON)


More information about the poppler mailing list