summaryrefslogtreecommitdiff
path: root/codec/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'codec/CMakeLists.txt')
-rw-r--r--codec/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt
index ee496e33..3ed8bedd 100644
--- a/codec/CMakeLists.txt
+++ b/codec/CMakeLists.txt
@@ -34,6 +34,7 @@ INCLUDE_DIRECTORIES(
FOREACH(exe j2k_to_image image_to_j2k)
ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg)
+ # On unix you need to link to the math library:
IF(UNIX)
TARGET_LINK_LIBRARIES(${exe} -lm)
ENDIF(UNIX)