Description: Fix build against system libjpeg
Forwarded: https://github.com/openmoh/openmohaa/pull/701
Author: Sébastien Noel <sebastien@twolife.be>
--- openmohaa-0.81.0+dfsg.orig/code/renderercommon/CMakeLists.txt
+++ openmohaa-0.81.0+dfsg/code/renderercommon/CMakeLists.txt
@@ -25,6 +25,7 @@ if(USE_INTERNAL_JPEG)
 	target_link_libraries(omohrenderer_common PRIVATE jpeg8)
 	target_compile_definitions(omohrenderer_common PUBLIC USE_INTERNAL_JPEG)
 else()
+	find_package(JPEG REQUIRED)
 	target_include_directories(omohrenderer_common PUBLIC ${JPEG_INCLUDE_DIRS})
 	target_link_libraries(omohrenderer_common PRIVATE ${JPEG_LIBRARIES})
 endif()

