CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit ce0f124ae2a50c51cae32b8c4e7559a9223ea3d5 Author: Albert Astals Cid <aa...@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) _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler