Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix build with libjpeg-turbo
Browse files Browse the repository at this point in the history
USE_LIBJPEG_TURBO should not be defined since, from pdfiums view, we just
supply a system libjpeg, independent of which implementation is selected.
That define is only if we want to build directly from pdfiums
third_party folder.
  • Loading branch information
Cyriuz authored and madebr committed Dec 27, 2023
1 parent 9611e37 commit e02962c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmake/third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@ option(PDF_LIBJPEG_TURBO "Use libjpeg-turbo" OFF)
if(PDF_LIBJPEG_TURBO)
find_package(libjpeg-turbo)
target_link_libraries(pdfium_thirdparty_libjpeg INTERFACE libjpeg-turbo::libjpeg-turbo)
target_compile_definitions(pdfium_thirdparty_libjpeg INTERFACE USE_LIBJPEG_TURBO=1)
else()
find_package(JPEG)
target_link_libraries(pdfium_thirdparty_libjpeg INTERFACE JPEG::JPEG)
target_compile_definitions(pdfium_thirdparty_libjpeg INTERFACE USE_SYSTEM_LIBJPEG)
endif()
target_compile_definitions(pdfium_thirdparty_libjpeg INTERFACE USE_SYSTEM_LIBJPEG)

add_library(pdfium_thirdparty_zlib INTERFACE)
add_library(pdfium::thirdparty_zlib ALIAS pdfium_thirdparty_zlib)
Expand Down

0 comments on commit e02962c

Please sign in to comment.