summaryrefslogtreecommitdiff
path: root/libraries/openjpeg/openjpeg_link_libm.patch
blob: 7214cc960195d0ffbbacc2b7842e7209a1d438d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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