[trunk] Fix missing -lm to openjpwl
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 15 Oct 2012 08:38:48 +0000 (08:38 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 15 Oct 2012 08:38:48 +0000 (08:38 +0000)
src/lib/openjpwl/CMakeLists.txt

index 86b31d128beb4758adcc8aad866908b56c56baab..3b809989ed71ca72baf969e894c0253822b8e102 100644 (file)
@@ -47,6 +47,9 @@ if(WIN32)
   endif()
 endif()
 add_library(openjpwl ${JPWL_SRCS} ${OPENJPEG_SRCS})
+if(UNIX)
+  target_link_libraries(openjpwl m)
+endif()
 set_target_properties(openjpwl
   PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})