slackbuilds_ponce/libraries/openjpeg/openjpeg_link_libm.patch
Heinz Wiesinger ed6ac81f7e libraries/openjpeg: Added patch from upstream.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
2011-11-26 09:09:09 -06:00

14 lines
462 B
Diff

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 728)
+++ CMakeLists.txt (revision 729)
@@ -30,6 +30,9 @@
ENDIF(BUILD_SHARED_LIBS)
ENDIF(WIN32)
ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS})
+IF(UNIX)
+ TARGET_LINK_LIBRARIES(${OPENJPEG_LIBRARY_NAME} m)
+ENDIF(UNIX)
SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME} PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
# Install library