Patch to fix build with jpeg enabled

Issue #210
Bug https://bugs.gentoo.org/947728

Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
This commit is contained in:
Alexey Shvetsov 2025-02-09 23:56:10 +03:00
parent d1228b6ce9
commit 3d82bf8836
No known key found for this signature in database
GPG Key ID: AFEB5B0D32013980

View File

@ -432,6 +432,9 @@ if (USE_JPEG)
find_package(JPEG REQUIRED)
add_definitions(-DJPEGLIB)
include_directories(${JPEG_INCLUDE_DIR})
if(USE_GUI)
target_link_libraries(nggui INTERFACE ${JPEG_LIBRARIES})
endif(USE_GUI)
endif (USE_JPEG)
#######################################################################