blob: 0460a1a6fefe1e10089f80903b245858eda24971 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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
|