<div dir="ltr">Hello,<div><br></div><div>I have compiled PDFium from <a href="https://github.com/rouault/pdfium/tree/master">https://github.com/rouault/pdfium/tree/master</a> and I'm trying to get GDAL 3.8.4 built with this geospatial PDF driver on Almalinux 8.</div><div><br></div><div>However if I use cmake with the following variables :</div><div><i>-DGDAL_USE_PDFIUM=ON -DGDAL_ENABLE_DRIVER_PDF=ON -DPDFIUM_INCLUDE_DIR="${INSTALLDIR}"/include/pdfium -DPDFIUM_LIBRARY="${INSTALLDIR}"/lib/pdfium/libpdfium.a</i></div><div><br></div><div>I get the following error :</div><div><i>CMake Error at cmake/helpers/GdalDriverHelper.cmake:284 (message):<br>  gdal_target_link_libraries(): PRIVATE is a mandatory argument.<br>Call Stack (most recent call first):<br>  frmts/pdf/CMakeLists.txt:53 (gdal_target_link_libraries)</i><br></div><div><br></div><div>If I remove <i>-DGDAL_ENABLE_DRIVER_PDF=ON </i>, I get GDAL compiled but without PDFium.</div><div><br></div><div>Any idea?</div><div>Thanks,</div><div>Johannes</div><div><br></div><div><br></div></div>