[1.5] Add explicit linking from glue java lib to real openjpeg lib
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Thu, 19 Apr 2012 10:53:04 +0000 (10:53 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Thu, 19 Apr 2012 10:53:04 +0000 (10:53 +0000)
applications/JavaOpenJPEG/CMakeLists.txt

index 6906fbf8ec18158196da47e0ac875a7c9d880845..c3c99bc5d61b68ec4bb4ac5315f19f5dbe8a2b97 100644 (file)
@@ -20,6 +20,7 @@ include_directories(
 add_library(openjpegjni MODULE
   ${openjpegjni_SRCS}
   )
+TARGET_LINK_LIBRARIES(openjpegjni ${OPENJPEG_LIBRARY_NAME})
 
 IF(WIN32)
   SET(OPENJPEG_INSTALL_JNI_DIR ${OPENJPEG_INSTALL_BIN_DIR})