From ebd5c872a4e5fe036bb9dd6901b23de673c6ade3 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 14 Sep 2022 19:06:41 +0200 Subject: [PATCH] CMake: Poppler: tighten fix of PR #6347 for broken 18.04 package --- frmts/pdf/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/frmts/pdf/CMakeLists.txt b/frmts/pdf/CMakeLists.txt index 6c80b4158d88..edabae1308ad 100644 --- a/frmts/pdf/CMakeLists.txt +++ b/frmts/pdf/CMakeLists.txt @@ -42,6 +42,7 @@ if (GDAL_USE_POPPLER) # installed, create a dummy one in a temporary directory # To be removed once https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1989434 is fixed if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND + "${Poppler_INCLUDE_DIRS}" STREQUAL "/usr/include/poppler" AND EXISTS /usr/include/poppler/goo/gmem.h AND NOT EXISTS /usr/include/poppler/goo/GooCheckedOps.h) file(READ /usr/include/poppler/goo/gmem.h GMEM_H_CONTENTS)