]> granicus.if.org Git - openjpeg/commitdiff
Explicitly link to the math lib on UNIX as we use floor and such symbols
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 16 Feb 2011 13:59:24 +0000 (13:59 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 16 Feb 2011 13:59:24 +0000 (13:59 +0000)
libopenjpeg/CMakeLists.txt

index 121d7060322ee7738491f5b76fdcc411e78e6539..8cb6e2950a6137f0423c3260eada298c16a2c80b 100644 (file)
@@ -30,6 +30,9 @@ IF(WIN32)
   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