19 lines
592 B
Diff
19 lines
592 B
Diff
|
From: Peter Lemenkov <lemenkov@gmail.com>
|
||
|
Date: Wed, 17 Apr 2019 12:39:42 +0300
|
||
|
Subject: [PATCH] Link main library against libjpeg
|
||
|
|
||
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
||
|
|
||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index eb12ab4f..856cc975 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -31,6 +31,7 @@ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES VERSION "0.0.0" SOVERSION 0
|
||
|
INCLUDE ( FindJPEG )
|
||
|
if (JPEG_FOUND)
|
||
|
include_directories( ${JPEG_INCLUDE_DIR} )
|
||
|
+ target_link_libraries( ${ly_lib_shared} ${JPEG_LIBRARY} )
|
||
|
add_definitions( -DHAVE_JPEG )
|
||
|
endif()
|
||
|
|