From 3d82bf88360b9d032671a72a31cd9c351bf674f8 Mon Sep 17 00:00:00 2001
From: Alexey Shvetsov <alexxy@gentoo.org>
Date: Sun, 9 Feb 2025 23:56:10 +0300
Subject: [PATCH] Patch to fix build with jpeg enabled

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

Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9c54e30e..deb77192 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
 
 #######################################################################
-- 
2.48.1

