summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-04-16 13:16:16 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-04-16 13:16:16 +0000
commitdfbab28b4d63e7d7454be9cb0e89ff5f7059994d (patch)
tree04cf356e009eb81da3ce58e1dd2b2c17f4ac3aa4
parent3819c1b5f453fddb14eaf85fc95c7a3da05613d5 (diff)
[1.5] debian tools detected a missing link to math lib
-rw-r--r--libopenjpeg/jpwl/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopenjpeg/jpwl/CMakeLists.txt b/libopenjpeg/jpwl/CMakeLists.txt
index f8512cda..fff7d087 100644
--- a/libopenjpeg/jpwl/CMakeLists.txt
+++ b/libopenjpeg/jpwl/CMakeLists.txt
@@ -23,6 +23,9 @@ IF(WIN32)
ENDIF(BUILD_SHARED_LIBS)
ENDIF(WIN32)
ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME}_JPWL ${JPWL_SRCS} ${OPENJPEG_SRCS})
+IF(UNIX)
+ TARGET_LINK_LIBRARIES(${OPENJPEG_LIBRARY_NAME} m)
+ENDIF(UNIX)
SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME}_JPWL
PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})