Skip to content

Commit

Permalink
Merge pull request #10644 from dotysan/pdfium_needs_lcms2
Browse files Browse the repository at this point in the history
PDFium: show proper error when lcms2 is missing
  • Loading branch information
rouault authored Aug 25, 2024
2 parents 3aa4582 + 12514b1 commit f7447c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frmts/pdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ if (GDAL_USE_PDFIUM)
find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)
find_package(OpenJPEG REQUIRED)
find_library(LCMS2_LIBRARY NAMES lcms2 REQUIRED)
find_library(LCMS2_LIBRARY NAMES lcms2)
if(NOT LCMS2_LIBRARY)
message(FATAL_ERROR "LCMS2 library not found. Please install liblcms2-dev.")
endif()

# Rather hacky... Related how we build pdfium in https://github.com/rouault/pdfium_build_gdal_3_4
gdal_target_link_libraries(
Expand Down

0 comments on commit f7447c6

Please sign in to comment.