fix build with shared jpeg library (#701)

This commit is contained in:
Sébastien Noel 2025-03-19 14:46:12 +01:00 committed by GitHub
parent 49fd4acef8
commit b5e49df180
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,7 @@ if(USE_INTERNAL_JPEG)
target_link_libraries(omohrenderer_common PRIVATE jpeg8) target_link_libraries(omohrenderer_common PRIVATE jpeg8)
target_compile_definitions(omohrenderer_common PUBLIC USE_INTERNAL_JPEG) target_compile_definitions(omohrenderer_common PUBLIC USE_INTERNAL_JPEG)
else() else()
find_package(JPEG REQUIRED)
target_include_directories(omohrenderer_common PUBLIC ${JPEG_INCLUDE_DIRS}) target_include_directories(omohrenderer_common PUBLIC ${JPEG_INCLUDE_DIRS})
target_link_libraries(omohrenderer_common PRIVATE ${JPEG_LIBRARIES}) target_link_libraries(omohrenderer_common PRIVATE ${JPEG_LIBRARIES})
endif() endif()