From 2ad90b7c418544b1605e5b943b3fb2005c3beb65 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 15 Oct 2012 08:38:48 +0000 Subject: [PATCH] [trunk] Fix missing -lm to openjpwl --- src/lib/openjpwl/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/openjpwl/CMakeLists.txt b/src/lib/openjpwl/CMakeLists.txt index 86b31d12..3b809989 100644 --- a/src/lib/openjpwl/CMakeLists.txt +++ b/src/lib/openjpwl/CMakeLists.txt @@ -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})